format
examples
time format eval
input
Time.now.format("%Y-%m-%d %H:%M:%S")
result
"2025-06-21 18:23:04"
time format a b d y
input
Time.now.format("%A, %B %d, %Y")
result
"Saturday, June 21, 2025"
time format i m p
input
Time.now.format("%I:%M %p")
result
"06:23 PM"
week format
input
Time.now.format("Week %U of %Y")
result
"Week 24 of 2025"
day format j of the year
input
Time.now.format("Day %j of the year")
result
"Day 172 of the year"