Differences

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

Link to this comparison view

Both sides previous revision Previous revision
uphp:functions:mktime [2018/09/05 14:05]
jeff Added link to 'wattmons'
uphp:functions:mktime [2019/12/17 06:08] (current)
admin
Line 33: Line 33:
 <​html><​b><​span style="​color:​blue">​$second<​span style="​color:​black"></​b></​html>: ​ Seconds 0-59 <​html><​b><​span style="​color:​blue">​$second<​span style="​color:​black"></​b></​html>: ​ Seconds 0-59
  
-<​html><​b><​span style="​color:​blue">​$month<​span style="​color:​black"></​b></​html>: ​ Month 1-12+<​html><​b><​span style="​color:​blue">​$month<​span style="​color:​black"></​b></​html>: ​ Month 0-11
  
 <​html><​b><​span style="​color:​blue">​$day<​span style="​color:​black"></​b></​html>: ​ Day 1-31 (depending on the month) <​html><​b><​span style="​color:​blue">​$day<​span style="​color:​black"></​b></​html>: ​ Day 1-31 (depending on the month)
Line 54: Line 54:
  
 In other words: ​ Wattmon "Linux Timestamps"​ are based upon local Wattmon time and are not adjusted by the timezone setting in Control Panel > Time Settings (Time and Date Settings) > UTC Offset. ​ (These settings are stored in ''/​config/​time.ini''​.) In other words: ​ Wattmon "Linux Timestamps"​ are based upon local Wattmon time and are not adjusted by the timezone setting in Control Panel > Time Settings (Time and Date Settings) > UTC Offset. ​ (These settings are stored in ''/​config/​time.ini''​.)
 +
 +====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==== ====See Also====