func Unix(sec int64, nsec int64) Time
Unix returns the local Time corresponding to the given Unix time,
sec seconds and nsec nanoseconds since January 1, 1970 UTC.
It is valid to pass nsec outside the range [0, 999999999].
Not all sec values have a corresponding time value. One such
value is 1<<63-1 (the largest int64 value).
If you want to change selection, open document below and click on "Move attachment"
time package - time - Go Packagesies to match it against the Local location; ParseInLocation uses the given location. Example ¶ Output: 2012-07-09 05:02:00 +0200 CEST 2012-07-09 00:00:00 +0200 CEST Share Format Run func Unix ¶ <span>func Unix(sec int64, nsec int64) Time Unix returns the local Time corresponding to the given Unix time, sec seconds and nsec nanoseconds since January 1, 1970 UTC. It is valid to pass nsec outside the range [0, 999999999]. Not all sec values have a corresponding time value. One such value is 1<<63-1 (the largest int64 value). Example ¶ Output: 1257894000 2009-11-10 23:00:00 +0000 UTC Share Format Run func UnixMicro ¶ added in go1.17 func UnixMicro(usec int64) Time UnixMicro returns the local Time correspondi Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details