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
DateTime_FromUnixTime = (unixTime as number, optional mode as text) as datetime =>
/*
Convert Unix date times to a `datetime`
modes
"s" is seconds
"ms" is milliseconds
"ns" is nanoseconds
To use the epoch "12:00 midnight, January 1, 1601", use the functions
DateTime.FromFileTime
DateTimeZone.FromFileTime
see also:
https://en.wikipedia.org/wiki/Unix_time#UTC_basis
.net class for duration: https://docs.microsoft.com/en-us/dotnet/api/system.timespan?view=netcore-3.1
when out of range, the user facing error is:
> An error occurred in the ‘DateTime_FromUnixTime’ query. Expression.Error: The Duration operation failed because the resulting duration falls outside the range of allowed values.