timestamp_class
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| timestamp_class [2019/12/11 22:15] – sahl | timestamp_class [2020/09/01 13:18] (current) – removed sahl | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Timestamp class ====== | ||
| - | The timestamp provides an abstraction on top of PHP date functions, providing easier function and handling of time zones. | ||
| - | |||
| - | <code php> | ||
| - | $timestamp = new Timestamp(' | ||
| - | $timestamp-> | ||
| - | echo 'In one hour the time is: ' | ||
| - | </ | ||
| - | |||
| - | ===== Setting the timezone ===== | ||
| - | |||
| - | Call '' | ||
timestamp_class.1576102538.txt.gz · Last modified: 2019/12/11 22:15 by sahl