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 |