User Tools

Site Tools


uphp:functions:settime

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:settime [2017/05/09 11:31]
jeff
uphp:functions:settime [2021/09/13 05:57] (current)
Line 25: Line 25:
 <html><b><span style="color:blue">$calibration<span style="color:black"></b></html>:  Optional, value to set in the <tooltip title="Real Time Clock">RTC</tooltip> calibration register((The calibration register value is also stored in ''/config/time.ini'' key ''rtc_adjust''.)) <html><b><span style="color:blue">$calibration<span style="color:black"></b></html>:  Optional, value to set in the <tooltip title="Real Time Clock">RTC</tooltip> calibration register((The calibration register value is also stored in ''/config/time.ini'' key ''rtc_adjust''.))
  
-====Return Value====+====Return Values====
  
 None None
Line 33: Line 33:
 Unlike mainline PHP, in uPHP "Linux Timestamps" are based upon the Wattmon's local time, not UTC/GMT. Unlike mainline PHP, in uPHP "Linux Timestamps" are based upon the Wattmon's local time, not UTC/GMT.
  
-Technically, the Unix Epoch is defined as being January 1, 1970, 00:00:00 //GMT//. But on the Wattmon, timestamps are relative to January 1, 1970, 00:00:00 //local timezone//.+Technically, the Unix Epoch is defined as being January 1, 1970, 00:00:00 //GMT//. But on the [[hardware:wattmons|Wattmon]], timestamps are relative to January 1, 1970, 00:00:00 //local timezone//.
  
 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.
uphp/functions/settime.1494329479.txt.gz · Last modified: 2021/09/13 05:56 (external edit)