Skip to content

Commit 80e0887

Browse files
Update README.md
1 parent 0734c84 commit 80e0887

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,19 @@ The duration are encoded internally as a 64-bit signed integer. High precision i
9797

9898

9999
```julia
100-
DateTimeStandard(Int128,y,m,d,H,M,S,µS,mS,nS; units=:nanosecond)
100+
DateTimeStandard(Int128,y,m,d,hour,minute,sec,µsec,msec,nsec; units=:nanosecond)
101101
```
102102

103103
The default time origin is currently 1 January 1900 00:00:00. A different time origin can be used by setting the origin parameter:
104104

105105
```julia
106-
DateTimeStandard(Int128,y,m,d,H,M,S,µS,mS,nS; units=:nanosecond, origin=(1970,1,1))
106+
DateTimeStandard(Int128,y,m,d,hour,minute,sec,µsec,msec,nsec; units=:nanosecond, origin=(1970,1,1))
107107
```
108108

109109
The units and origin argument can be wrapped as a `Val` to ensure that these values are known at compile-time:
110110

111111
```julia
112-
DateTimeStandard(Int128,y,m,d,H,M,S,µS,mS,nS; units=Val(:nanosecond), origin=Val((1970,1,1)))
112+
DateTimeStandard(Int128y,m,d,hour,minute,sec,µsec,msec,nsec; units=Val(:nanosecond), origin=Val((1970,1,1)))
113113
```
114114

115115
Several compile-time optimization have been implemented for the particular but common case where date have the same time origin and/or the same time resolution.

0 commit comments

Comments
 (0)