...
Valid format arguments to strftime follow the POSIX strftime conventions.
time:strftime()
takes an optional third argument that is used to specify the timezone of the resulting formatted string. This can be used, among other things, to simply convert the timezone by returning an ISO formatted datetime string. For example, the following function uses time:strftime()
to convert an incoming datetime string to UTC:
Code Block | ||||
---|---|---|---|---|
| ||||
convertToUTC = function(dt) {
time:strftime(dt, "%Y%m%dT%H%M%S%z", {"tz":"UTC"})
}; |
time:atom()
time:atom() - converts a datetime string to an ATOM compatible form.
...