User Tools

Site Tools


uphp:functions:timefromfat

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:timefromfat [2017/05/09 11:00]
jeff created
uphp:functions:timefromfat [2021/09/13 05:57] (current)
Line 3: Line 3:
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Convert a FAT <html><b><span style="color:blue">filetime</b></html> to a Linux timestamp+Convert a FAT <html><b><span style="color:blue">filetime</b></html> to a Linux Timestamp
  
 ====Description==== ====Description====
Line 17: Line 17:
 ====Parameter==== ====Parameter====
  
-<html><b><span style="color:blue">$filetime<span style="color:black"></b></html>:  [[#functions_that_return_a_fat_file_timestamp|A FAT File Timestamp]], seconds since January 1, 1980, 00:00:00, local Wattmon time+<html><b><span style="color:blue">$filetime<span style="color:black"></b></html>:  A FAT File Timestamp, seconds since January 1, 1980, 00:00:00, local Wattmon time
  
-====Return Value====+====Return Values====
  
-<html><b><span style="color:green">Integer<span style="color:black"></b></html>:  A Linux timestamp, seconds since January 1, 1970, 00:00:00, local Wattmon time+<html><b><span style="color:green">Integer<span style="color:black"></b></html>:  A Linux Timestamp, seconds since January 1, 1970, 00:00:00, local Wattmon time
  
 ====Notes==== ====Notes====
  
-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.
  
-In uPHP on the Wattmon this simplification is referred to as a "Linux timestamp" but it should be noted that it may not be exactly the same, depending on the Wattmon's timezone settings.+In uPHP on the Wattmon this simplification is referred to as a "Linux Timestamp" but it should be noted that it may not be exactly the same, depending on the Wattmon's timezone settings.
  
-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''.)
  
 ====Functions that Return a FAT File Timestamp==== ====Functions that Return a FAT File Timestamp====
Line 41: Line 41:
 [[findnext()]] - Return next matching file information (after a findfirst) [[findnext()]] - Return next matching file information (after a findfirst)
  
-====See Also====+====Also See====
  
-[[os:fat_file_system#timestamps|FAT timestamp of last save]]+[[software:os:fat_file_system#timestamps|FAT timestamp of last save]]
  
-[[microtime()]] - Return number of milliseconds since boot+[[microtime()]] - Return the number of milliseconds since boot
  
-[[mktime()]] - Return Linux timestamp for a given date and time+[[mktime()]] - Return the Linux Timestamp for a given date and time
  
-[[settime()]] - Set the system time from a Linux timestamp, with optional calibration+[[settime()]] - Set the system time from a Linux Timestamp, with optional calibration
  
-[[strftime()]] - Format a Linux timestamp using a format <html><b><span style="color:green">string</b></html>+[[strftime()]] - Format a Linux Timestamp using a format <html><b><span style="color:green">string</b></html>
  
-[[time()]] - Return current system timestamp+[[time()]] - Return the current system timestamp
  
-[[uptime()]] - Return uptime in milliseconds+[[uptime()]] - Return the uptime in milliseconds
  
uphp/functions/timefromfat.1494327614.txt.gz · Last modified: 2021/09/13 05:56 (external edit)