This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
uphp:functions:time [2017/05/06 13:14] jeff |
uphp:functions:time [2021/09/13 05:57] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| < | < | ||
| - | Return current system timestamp | + | Return |
| ====Description==== | ====Description==== | ||
| - | <well size=" | + | <well size=" |
| - | < | + | |
| <span style=" | <span style=" | ||
| - | <span style=" | + | <span style=" |
| - | </ | + | </ |
| - | [[time]] ( ) | + | |
| - | </ | + | |
| - | + | ||
| - | Returns the current time measured in the number of seconds since January 1, 1970, 00:00:00 | + | |
| ====Parameters==== | ====Parameters==== | ||
| Line 21: | Line 16: | ||
| None | None | ||
| - | ====Return | + | ====Return |
| < | < | ||
| Line 27: | Line 22: | ||
| ====Notes==== | ====Notes==== | ||
| - | Unlike mainline PHP, in uPHP " | + | Unlike mainline PHP, in uPHP " |
| - | Technically, | + | Technically, |
| If the Wattmon clock and timezone are set to UTC+00 (GMT) then the uPHP timestamp //is// the same as mainline PHP, otherwise not. | If the Wattmon clock and timezone are set to UTC+00 (GMT) then the uPHP timestamp //is// the same as mainline PHP, otherwise not. | ||
| - | In uPHP on the Wattmon this simplification is referred to as a " | + | In uPHP on the Wattmon this simplification is referred to as a " |
| - | In other words: | + | In other words: |
| ====See Also==== | ====See Also==== | ||
| - | [[microtime()]] - Return number of milliseconds since boot | + | [[microtime()]] - Return |
| - | [[mktime()]] - Return Linux timestamp | + | [[mktime()]] - Return |
| - | [[settime()]] - Set the system time from a Linux timestamp | + | [[settime()]] - Set the system time from a Linux Timestamp, with optional calibration |
| - | [[strftime()]] - Format a Linux timestamp | + | [[strftime()]] - Format a Linux Timestamp |
| - | [[timefromfat()]] - Convert a FAT filetime to a Linux timestamp | + | [[timefromfat()]] - Convert a FAT filetime to a Linux Timestamp |
| - | [[uptime()]] - Return uptime in milliseconds | + | [[uptime()]] - Return |