3.5.9.17 UnixTime
UnixTime-func
Description
Convert between Unix timestamp and Julian-day value.
See this note concerning Origin's date-time systems, including the default "adjusted" Julian Date system.
Syntax
double UnixTime(double d1, double d2 = 0, int n = 0)
Parameters
d1
- is a Unix Time Value in seconds if n = 0, or Julian-day value if n = 1.
d2
- default=0, is the timezone offset. It could be beyond UTC-12:00 ~ UTC+12:00.
n
- default=0, to convert UnixTime to JulianDays, n=1 will convert from JulianDays to UnixTime.
Return
Return the converted time value.
Example
col(C)=UnixTime(col(B), 8);//convert to Beijing time