
PRO
dbeard
USA
Asked
— Edited
Looking for script code that will convert current time to Unix time. Unix time starts on 01/01/1970. I need to know how to calculate the Unix time for current time.
Thanks
Is that right?
Code:
online converter tool: https://www.epochconverter.com/
I had a deja vu moment... remember this thread:
https://www.ez-robot.com/Community/Forum/Thread?threadId=9760
Are you still playing with Dates ?
will try the example above and see how it does, appreciate the reminder.
Fixed a silly mistake: UnixEpoch starts at midnight (0:0).
relevant thread:
https://www.ez-robot.com/Community/Forum/Thread?threadId=9760
DJ's post #8 is the reason.
Thanks, working now.
Believe me I reviewed all my past time posts before posting this because I know how beat up I was going to get.
Really appreciate the assistance.
UnixEpoch is a sequencial time line (seconds since 1970), there is no concept of timezones, UTC date time is used to be immune to the Daylight savings and creating calculating issues.
Also is interesting to notice that many *nix servers can go years without a reboot, so UnixEpoch makes the life easier to count or compare different time moments.