Is there some way to generate the epoch time in SQL?
I tried
values generate_unique()
but that was blank.
And I tried the ancient
select generate_unique() from sysibm.sysdummy1
but that worked the same

I took a wag at
values cast(generate_unique() as char(30))
but that wasn't any better.

This was a little different
values generate_unique(), timestamp(generate_unique())
....+....1....+....2....+.
VALUES
++++++++++++++++++++++++++
2015-11-10-21.04.02.786923
******** End of data ***

Before I never even got the plus signs.

I was pointed to this epoch site by IBM
http://www.epochconverter.com/?cm_mc_uid=04943014784214468222669&cm_mc_sid_50200000=1447188011


Rob Berendt

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].