You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Treats the value as a Unix timestamp (seconds since 1970-01-01 UTC) and formats it through `strftime`. The optional `!` prefix forces UTC; without it the system's local time zoneis used. This follows the same convention as Lua's `os.date()`. An optional frame may precede the marker (see [Frame before a marker](#frame-before-a-marker)).
1374
+
Treats the value as a Unix timestamp (seconds since 1970-01-01 UTC) and formats it through `strftime`. A bare `d:` is all you need — it renders in the machine's local time zone. The `!` prefix is **optional** and only switches the output to UTC; it is not required for `d:` to work and follows Lua's `os.date()` convention. An optional frame may precede the marker (see [Frame before a marker](#frame-before-a-marker)).
1375
1375
1376
1376
The pattern accepts any standard strftime specifier. Literal text between specifiers is passed through verbatim. Common specifiers:
1377
1377
@@ -1397,7 +1397,16 @@ The pattern accepts any standard strftime specifier. Literal text between specif
1397
1397
1398
1398
Weekday/month names follow the system locale. The full list of `strftime` specifiers is platform-defined and passes through verbatim — anything your C library supports works here.
1399
1399
1400
-
| Spec | Timestamp | Output (UTC) |
1400
+
**Local vs. UTC.** The same timestamp formatted both ways differs by your UTC offset. `d:` is the normal, local form; add `!` only when you specifically want UTC:
0 commit comments