This shows you the differences between two versions of the page.
uphp:functions:mktime [2019/12/17 06:08] admin |
uphp:functions:mktime [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======mktime====== | ||
- | |||
- | < | ||
- | |||
- | Return the Linux Timestamp for a given date and time | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | |||
- | ====Parameters==== | ||
- | |||
- | < | ||
- | |||
- | < | ||
- | |||
- | < | ||
- | |||
- | < | ||
- | |||
- | < | ||
- | |||
- | < | ||
- | |||
- | ====Return Values==== | ||
- | |||
- | < | ||
- | |||
- | ====Notes==== | ||
- | |||
- | Unlike mainline PHP, in uPHP "Linux Timestamps" | ||
- | |||
- | 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. | ||
- | |||
- | In uPHP on the Wattmon this simplification is referred to as a "Linux Timestamp" | ||
- | |||
- | In other words: | ||
- | |||
- | ====Note==== | ||
- | This differs from the traditional PHP implementation in that the month variable is 0-11 rather than 1-12. This was due to an early implementation error which we are unable to modify now since too many devices use the code. | ||
- | |||
- | ====See Also==== | ||
- | |||
- | [[microtime()]] - Return the number of milliseconds since boot | ||
- | |||
- | [[settime()]] - Set the system time from a Linux Timestamp, with optional calibration | ||
- | |||
- | [[strftime()]] - Format a Linux Timestamp using a format < | ||
- | |||
- | [[time()]] - Return the current system timestamp | ||
- | |||
- | [[timefromfat()]] - Convert a FAT filetime to a Linux Timestamp | ||
- | |||
- | [[uptime()]] - Return the uptime in milliseconds | ||