EPOCH Time

Any IBM i topic that does not fit in another forum
Post Reply
tbrantley
Posts: 11
Joined: Fri Jul 14, 2023 9:25 pm

EPOCH Time

Post by tbrantley »

Good morning, Scott!

Is there a way to get epoch time via DB2?

Thanks,
Trent
Scott Klement
Site Admin
Posts: 872
Joined: Sun Jul 04, 2021 5:12 am

Re: EPOCH Time

Post 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.
Post Reply