Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 19:51 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Epoch Times?

Author Message
Malibu
Senior Member

Joined: 07/07/2018
Location: Australia
Posts: 228
Posted: 08:09am 27 Sep 2023
Copy link to clipboard 
Print this post

A curious circumstance I found when playing with the EPOCH function on a WebMite today...


print epoch (now) 'Gives valid number - 1695836940 <----
print epoch("27-09-2023 02:30:00")'Gives valid number - 1695781800 <----
print epoch("27-09-2023 a2:30:00")'Gives valid number - 1695774600
print epoch("27-09-2023 aa:bb:cc")'Gives valid number - 1695772800
print epoch("27,09-2023 aa:bb:cc")'Syntax error
print epoch("a-b-cc 02:30:00")'Invalid Date error


I would have expected errors on all the code lines except the first 2, or am I missing something?
John
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024