Back to Floor
The Chronosphere • Room 2
Time Formatting
Raw timestamp strings often need to be converted to Epoch time (seconds since 1970) for math calculations.
`strptime` converts a String to an Epoch Time integer.
`strftime` converts an Epoch Time integer into a formatted String.
Extracting Epoch
| eval epoch_time = strptime(log_time, "%Y-%m-%d %H:%M:%S")Knowledge Check
Prove your understanding to clear the room (Rewards XP)
Drag items to their correct zone (or tap item then tap zone on mobile)
"2026-03-30" -> 1774880000
1774880000 -> "Mar 30, 2026"
Used to perform mathematical date offsets
Used to display timestamps elegantly in a dashboard
strptime
strftime