User Tools

Site Tools


timestamp_class

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
timestamp_class [2019/10/31 06:12] – created sahltimestamp_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('now'); 
-$timestamp->add(0,0,1); 
-echo 'In one hour the time is: '.$timestamp->getReadable(); 
-</code> 
timestamp_class.1572502351.txt.gz · Last modified: 2019/10/31 06:12 by sahl

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki