Page 1 of 1
EPOCH Time
Posted: Wed Jun 19, 2024 3:07 pm
by tbrantley
Good morning, Scott!
Is there a way to get epoch time via DB2?
Thanks,
Trent
Re: EPOCH Time
Posted: Wed Jun 19, 2024 10:06 pm
by Scott Klement
Meaning you want to get the current time elapsed since the Unix epoch in an SQL statement? I don't know why someone would do that... it's something I haven't looked into.
Of course, if you can't find a native way, it'd be trivial to write a function that would do it.