syncbase: syncQL: time functions: Time,Now,Year,Month,Day,Hour,Minute,Second,Nanosecond,Weekday,YearDay
New functions:
Time(<go-style-layout-string>, <location-string>): time
e.g., Time("2006-01-02 15:04:05 MST", "2015-03-17 11:14:04 PDT")
Year(<time>, <string-location>): integer year
e.g., Year(v.InvoiceDate, ""America/Los_Angeles")
Month(<time>, <string-location>): integer month
e.g., Year(v.InvoiceDate, ""America/Los_Angeles")
The following follow the same pattern as Year and Month
Day
Hour
Minute
Second
Nanosecond
Weekday
YearDay
Kept time functions:
Now() returns current time (and already existed).
Deleted time functions:
The previous library of time functions has been deleted (except Now() was kept).
Date
DateTime
Y
YM
YMD
YMDH
YMDHM
YMDHMS
Change-Id: I66e0e0099cb72d2c6c2f31ede484e0cd8604af2f
6 files changed