You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// UnixTimeNano binds parameter to time.Time variable (in local Time corresponding to the given Unix time in nano second precision).
1183
+
//
1184
+
// Example: 1609180603123456789 binds to 2020-12-28T18:36:43.123456789+00:00
1185
+
// Example: 1000000000 binds to 1970-01-01T00:00:01.000000000+00:00
1186
+
// Example: 999999999 binds to 1970-01-01T00:00:00.999999999+00:00
1187
+
//
1188
+
// Note:
1189
+
// * time.Time{} (param is empty) and time.Unix(0,0) (param = "0") are not equal
1190
+
// * Javascript's Number type only has about 53 bits of precision (Number.MAX_SAFE_INTEGER = 9007199254740991). Compare it to 1609180603123456789 in example.
// MustUnixTimeNano requires parameter value to exist to be bind to time.Duration variable (in local Time corresponding
1196
+
// to the given Unix time value in nano second precision). Returns error when value does not exist.
1197
+
//
1198
+
// Example: 1609180603123456789 binds to 2020-12-28T18:36:43.123456789+00:00
1199
+
// Example: 1000000000 binds to 1970-01-01T00:00:01.000000000+00:00
1200
+
// Example: 999999999 binds to 1970-01-01T00:00:00.999999999+00:00
1201
+
//
1202
+
// Note:
1203
+
// * time.Time{} (param is empty) and time.Unix(0,0) (param = "0") are not equal
1204
+
// * Javascript's Number type only has about 53 bits of precision (Number.MAX_SAFE_INTEGER = 9007199254740991). Compare it to 1609180603123456789 in example.
0 commit comments