Skip to content

Commit 6f014bf

Browse files
author
Roel Arents
committed
minor move of todo comments
1 parent fc16015 commit 6f014bf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/DateTimeMS.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -275,16 +275,19 @@ public function getTimestamp($microseconds = false)
275275
return $timestamp;
276276
}
277277

278+
/**
279+
* @todo Recognize fractions cq microseconds in absolute time formats.
280+
*/
278281
public function modify($modify)
279282
{
280283
// Extract relative microseconds operations
281284
$operationsMs = static::extractRelativeMicrosecondsOperations($modify);
282285

283286
// Let parent handle Date, Time and Compound formats. Relative micro-
284-
// seconds operations will be ignored.
287+
// seconds operations are not supported by parent.
285288
parent::modify($modify);
286289

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.
288291
$keywordsRegex = "/(?:^|[ \t]+)(?:" . implode('|', static::$timeResettingKeywords) . ")(?:$|[ \t])/";
289292
if (preg_match($keywordsRegex, $modify)) {
290293
$this->microInSeconds = 0.0;

0 commit comments

Comments
 (0)