Skip to content

Commit bb15627

Browse files
committed
fix timeToDate ai example
1 parent e5dbe2e commit bb15627

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

guide/CodeReferences/ref.time_format.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
```

guide/CodeReferences/ref.time_format_ai.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
```

guide/Date/timeToDate_ai.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)