Skip to content

Commit 68c80e8

Browse files
committed
example for time format
1 parent 25cb25d commit 68c80e8

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

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+
```

0 commit comments

Comments
 (0)