| 1 | <?php |
||
| 20 | final class MicroSecond extends FloatVO implements DateTimeInterface |
||
| 21 | { |
||
| 22 | use DateTimeTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Now. |
||
| 26 | * |
||
| 27 | * @return static |
||
| 28 | */ |
||
| 29 | 1 | public static function now() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * From String. |
||
| 36 | * |
||
| 37 | * @param $string |
||
| 38 | * @return static |
||
| 39 | */ |
||
| 40 | 1 | public static function fromString($string) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * From Native |
||
| 47 | * |
||
| 48 | * @param \DateTime $native |
||
| 49 | * @return DateTimeInterface |
||
| 50 | */ |
||
| 51 | 1 | public static function fromNative(\DateTime $native) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $microTime |
||
| 58 | * @return static |
||
| 59 | */ |
||
| 60 | 2 | public static function getMicroTimeAsInteger($microTime) |
|
| 64 | } |
||
| 65 |