Converting date time timestamps to Unix time
![]() |
| Photo by Nathan Dumlao on Unsplash |
Here we will see how to convert date time timestamps to Unix time. Unix stores time as number of seconds that have elapsed since the Unix epoch. Unix epoch is the time 00:00:00 UTC on 1/1/1970. We first generate timestamps using:
Now we convert these timestamps into Unix time using:


Comments
Post a Comment