File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,13 @@ like [$timeToDate](../Date/timeToDate.md)
2424| s | seconds like 20 |
2525| 0s | seconds but with padding zero like 03 |
2626| ampm | PM / AM |
27- | tz | Timezone used like UTC |
27+ | tz | Timezone used like UTC |
28+
29+ ### Example
30+ ``` php
31+ $timeToDate[$timestamp;%y%-%m%-%d%]
32+ ```
33+ Result:
34+ ```
35+ 2025-8-15
36+ ```
Original file line number Diff line number Diff line change @@ -28,4 +28,13 @@ The following table details the available time format macros and their descripti
2828| ` s ` | Seconds | ` 20 ` |
2929| ` 0s ` | Seconds with leading zero | ` 03 ` |
3030| ` ampm ` | AM/PM indicator | ` PM ` / ` AM ` |
31- | ` tz ` | Timezone abbreviation | ` UTC ` |
31+ | ` tz ` | Timezone abbreviation | ` UTC ` |
32+
33+ ### Example
34+ ``` php
35+ $timeToDate[$timestamp;%y%-%m%-%d%]
36+ ```
37+ Result:
38+ ```
39+ 2025-8-15
40+ ```
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ This example converts the current timestamp (obtained using `$timeStamp`) to a `
1919
2020<discord-messages >
2121 <discord-message :bot =" false " role-color =" #ffcc9a " author =" Member " >
22- !!exec $timeToDate[$timeStamp;%y-%m-%d]
22+ !!exec $timeToDate[$timeStamp;%y% -%m% -%d% ]
2323 </discord-message >
2424 <discord-message :bot =" true " role-color =" #0099ff " author =" Custom Command " avatar =" https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp " >
2525 2022-03-12
You can’t perform that action at this time.
0 commit comments