File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -275,16 +275,19 @@ public function getTimestamp($microseconds = false)
275
275
return $ timestamp ;
276
276
}
277
277
278
+ /**
279
+ * @todo Recognize fractions cq microseconds in absolute time formats.
280
+ */
278
281
public function modify ($ modify )
279
282
{
280
283
// Extract relative microseconds operations
281
284
$ operationsMs = static ::extractRelativeMicrosecondsOperations ($ modify );
282
285
283
286
// Let parent handle Date, Time and Compound formats. Relative micro-
284
- // seconds operations will be ignored .
287
+ // seconds operations are not supported by parent .
285
288
parent ::modify ($ modify );
286
289
287
- // TODO Set the microseconds to 0 if a resetting keyword was found.
290
+ // Set the microseconds to 0 if a resetting keyword was found.
288
291
$ keywordsRegex = "/(?:^|[ \t]+)(?: " . implode ('| ' , static ::$ timeResettingKeywords ) . ")(?:$|[ \t])/ " ;
289
292
if (preg_match ($ keywordsRegex , $ modify )) {
290
293
$ this ->microInSeconds = 0.0 ;
You can’t perform that action at this time.
0 commit comments