Changeset 1201 for XIOS/dev/dev_olga/src/node/file.cpp
- Timestamp:
- 07/07/17 18:17:49 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/node/file.cpp
r1158 r1201 425 425 if (!split_freq.isEmpty()) 426 426 { 427 CDate splitEnd = lastSplit + split_freq - 1 * Second; 427 CDate split_start ; 428 CDate splitEnd ; 429 if (!split_start_offset.isEmpty()) split_start=lastSplit + split_start_offset ; 430 else split_start=lastSplit ; 431 432 splitEnd = lastSplit + split_freq ; 433 if (!split_last_date.isEmpty()) 434 { 435 CDate splitLastDate=CDate::FromString(split_last_date,*CContext::getCurrent()->getCalendar()) ; 436 if( splitLastDate < splitEnd) splitEnd=splitLastDate ; 437 } 438 439 if (!split_end_offset.isEmpty()) splitEnd = splitEnd + split_end_offset; 440 else splitEnd = splitEnd - 1 * Second; 428 441 429 442 string splitFormat; … … 440 453 441 454 oss << firstPart ; 442 if (hasStartDate) oss << lastSplit.getStr(splitFormat) ;455 if (hasStartDate) oss << split_start.getStr(splitFormat) ; 443 456 oss << middlePart ; 444 457 if (hasEndDate) oss << splitEnd.getStr(splitFormat);
Note: See TracChangeset
for help on using the changeset viewer.