datetime

Use this when you need to know exactly what a C/POSIX strftime pattern (%Y %m %d %H %M %S %A %B %j %z etc.) produces.

Use this when you need to know exactly what a C/POSIX strftime pattern (%Y %m %d %H %M %S %A %B %j %z etc.) produces. Prefer this over guessing the output yourself. Deterministic: same input, same output; the reference time is formatted in UTC (%Z is 'UTC', %z is '+0000', defaults to current time when datetime is omitted). Unknown directives pass through literally. Example: {format:'%A, %B %e, %Y at %I:%M %p', datetime:'2026-07-08T14:30:45'} -> 'Wednesday, July 8, 2026 at 02:30 PM'.

post/v1/strftime_preview

Request

  • Base URL: https://api.clean.tools
  • URL: https://api.clean.tools/v1/strftime_preview
  • Auth: none declared

Request body

formatstring required

strftime format string, e.g. "%A, %B %e, %Y at %I:%M %p".

datetimestring

Optional ISO date-time to format (default: current time).

nowstring

Alias for the reference time when datetime is omitted.

Response

Structured tool result.

toolstring

Changes

No recorded changes to this operation across all 1 revision of this API.