strf

Sharedunrated

Content

18 lines
{=(codes):%a %A %w %d %-d %b %B %m %-m %y %Y %H %-H %I %-I %p %M %-M %s %S %-S %f %z %Z %j %-j %U %W %c %x %X %%}

{=(examplelist1):1. {strf:%a}~2. {strf:%A}~3. {strf:%w}~4. {strf:%d}~5. {strf:%-d}~6. {strf:%b}~7. {strf:%B}~8. {strf:%m}~9. {strf:%-m}~10. {strf:%y}~11. {strf:%Y}~12. {strf:%H}~13. {strf:%-H}~14. {strf:%I}~15. {strf:%-I}~16. {strf:%p}~17. {strf:%M}~18. {strf:%-M}~19. {strf:%s}~20. {strf:%S}~21. {strf:%-S}~22. {strf:%f}~23. {strf:%z}~24. {strf:%Z}~25. {strf:%j}~26. {strf:%-j}~27. {strf:%U}~28. {strf:%W}~29. {strf:%c}~30. {strf:%x}~31. {strf:%X}~32. {strf:%%}}


{=(data): %a|Weekday as locale’s abbreviated name.|Mon~%A|Weekday as locale’s full name.|Monday~%w|Weekday as a decimal number, where 0 is Sunday and 6 is Saturday.|1~%d|Day of the month as a zero-padded decimal number.|30~%-d|Day of the month as a decimal number. (Platform specific)|30~%b|Month as locale’s abbreviated name.|Sep~%B|Month as locale’s full name.|September~%m|Month as a zero-padded decimal number.|09~%-m|Month as a decimal number. (Platform specific)|9~%y|Year without century as a zero-padded decimal number.|13~%Y|Year with century as a decimal number.|2013~%H|Hour (24-hour clock) as a zero-padded decimal number.|07~%-H|Hour (24-hour clock) as a decimal number. (Platform specific)|7~%I|Hour (12-hour clock) as a zero-padded decimal number.|07~%-I|Hour (12-hour clock) as a decimal number. (Platform specific)|7~%p|Locale’s equivalent of either AM or PM.|AM~%M|Minute as a zero-padded decimal number.|06~%-M|Minute as a decimal number. (Platform specific)|6~%s|Unix.|1380524765~%S|Second as a zero-padded decimal number.|05~%-S|Second as a decimal number. (Platform specific)|5~%f|Microsecond as a decimal number, zero-padded on the left.|000000~%z|UTC offset in the form +HHMM or -HHMM (empty string if the the object is naive).|~%Z|Time zone name (empty string if the object is naive).|~%j|Day of the year as a zero-padded decimal number.|273~%-j|Day of the year as a decimal number. (Platform specific)|273~%U|Week number of the year (Sunday as the first day of the week) as a zero padded decimal number. All days in a new year preceding the first Sunday are considered to be in week 0.|39~%W|Week number of the year (Monday as the first day of the week) as a decimal number. All days in a new year preceding the first Monday are considered to be in week 0.|39~%c|Locale’s appropriate date and time representation.|Mon Sep 30 07:06:05 2013~%x|Locale’s appropriate date representation.|09/30/13~%X|Locale’s appropriate time representation.|07:06:05~%%|A literal '%' character.|%}

{=(info):{data({if({in(%):{1}}==true):{m:trunc({index({1}):{codes}}+1)}|{1}}):~}}

{if({args}!=):**Code:** {info(1):|}
**Explanation:** {info(2):|}
**Example 1:** {strf:{info(1):|}}
**Example 2:** {strf:{info(3):|}}}

{if({args}==):{codes}}

{if({args}==list):```{replace(~,
):{examplelist1}}```}
Raw JSON
{
  "id": 218739,
  "created_at": "2022-04-26T10:36:33.785Z",
  "tag_name": "strf",
  "nsfw": false,
  "owner_id": "643448506064961536",
  "uses": 57,
  "description": null,
  "restricted": false,
  "shared": true,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "642941354300669958",
  "sharer": "643448506064961536",
  "content": "{=(codes):%a %A %w %d %-d %b %B %m %-m %y %Y %H %-H %I %-I %p %M %-M %s %S %-S %f %z %Z %j %-j %U %W %c %x %X %%}\n\n{=(examplelist1):1. {strf:%a}~2. {strf:%A}~3. {strf:%w}~4. {strf:%d}~5. {strf:%-d}~6. {strf:%b}~7. {strf:%B}~8. {strf:%m}~9. {strf:%-m}~10. {strf:%y}~11. {strf:%Y}~12. {strf:%H}~13. {strf:%-H}~14. {strf:%I}~15. {strf:%-I}~16. {strf:%p}~17. {strf:%M}~18. {strf:%-M}~19. {strf:%s}~20. {strf:%S}~21. {strf:%-S}~22. {strf:%f}~23. {strf:%z}~24. {strf:%Z}~25. {strf:%j}~26. {strf:%-j}~27. {strf:%U}~28. {strf:%W}~29. {strf:%c}~30. {strf:%x}~31. {strf:%X}~32. {strf:%%}}\n\n\n{=(data): %a|Weekday as locale’s abbreviated name.|Mon~%A|Weekday as locale’s full name.|Monday~%w|Weekday as a decimal number, where 0 is Sunday and 6 is Saturday.|1~%d|Day of the month as a zero-padded decimal number.|30~%-d|Day of the month as a decimal number. (Platform specific)|30~%b|Month as locale’s abbreviated name.|Sep~%B|Month as locale’s full name.|September~%m|Month as a zero-padded decimal number.|09~%-m|Month as a decimal number. (Platform specific)|9~%y|Year without century as a zero-padded decimal number.|13~%Y|Year with century as a decimal number.|2013~%H|Hour (24-hour clock) as a zero-padded decimal number.|07~%-H|Hour (24-hour clock) as a decimal number. (Platform specific)|7~%I|Hour (12-hour clock) as a zero-padded decimal number.|07~%-I|Hour (12-hour clock) as a decimal number. (Platform specific)|7~%p|Locale’s equivalent of either AM or PM.|AM~%M|Minute as a zero-padded decimal number.|06~%-M|Minute as a decimal number. (Platform specific)|6~%s|Unix.|1380524765~%S|Second as a zero-padded decimal number.|05~%-S|Second as a decimal number. (Platform specific)|5~%f|Microsecond as a decimal number, zero-padded on the left.|000000~%z|UTC offset in the form +HHMM or -HHMM (empty string if the the object is naive).|~%Z|Time zone name (empty string if the object is naive).|~%j|Day of the year as a zero-padded decimal number.|273~%-j|Day of the year as a decimal number. (Platform specific)|273~%U|Week number of the year (Sunday as the first day of the week) as a zero padded decimal number. All days in a new year preceding the first Sunday are considered to be in week 0.|39~%W|Week number of the year (Monday as the first day of the week) as a decimal number. All days in a new year preceding the first Monday are considered to be in week 0.|39~%c|Locale’s appropriate date and time representation.|Mon Sep 30 07:06:05 2013~%x|Locale’s appropriate date representation.|09/30/13~%X|Locale’s appropriate time representation.|07:06:05~%%|A literal '%' character.|%}\n\n{=(info):{data({if({in(%):{1}}==true):{m:trunc({index({1}):{codes}}+1)}|{1}}):~}}\n\n{if({args}!=):**Code:** {info(1):|}\n**Explanation:** {info(2):|}\n**Example 1:** {strf:{info(1):|}}\n**Example 2:** {strf:{info(3):|}}}\n\n{if({args}==):{codes}}\n\n{if({args}==list):```{replace(~,\n):{examplelist1}}```}",
  "embed": "{}",
  "last_fetched": "2026-10-20T21:43:35.066Z"
}