I'd like to convert a timestamp like "2018-02-14 23:59:59" to a UNIX timestamp. I found that the opposite is possible using select sys.epoch(unix_timestamp);
.
The functions str_to_date
, str_to_time
or str_to_timestamp
are of no help, even if I specify the format string "%s" as seen here.
In other words, I'm looking for the MonetDB equivalent of the MySQL function UNIX_TIMESTAMP()
.
Copyright Notice:Content Author:「Marcell Bernát」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48784700/converting-a-timestamp-string-to-unix-timestamp-in-monetdb