This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
uphp:functions:strftime [2017/05/07 18:40] jeff |
uphp:functions:strftime [2021/09/13 05:57] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| < | < | ||
| - | < | + | < |
| ====Description==== | ====Description==== | ||
| - | <well size=" | + | <well size=" |
| - | < | + | |
| <span style=" | <span style=" | ||
| - | </html> | + | <span style=" |
| - | [[strftime]] ( | + | |
| - | < | + | |
| <span style=" | <span style=" | ||
| <span style=" | <span style=" | ||
| Line 18: | Line 15: | ||
| <span style=" | <span style=" | ||
| <span style=" | <span style=" | ||
| - | </ | + | </ |
| - | </ | + | |
| ====Parameters==== | ====Parameters==== | ||
| - | < | + | < |
| < | < | ||
| - | ====Return | + | ====Return |
| - | Formatted < | + | Formatted < |
| ====Format Character Sequences==== | ====Format Character Sequences==== | ||
| Line 35: | Line 31: | ||
| A Format Character Sequence (conversion specifier) is always 2 characters starting with a '' | A Format Character Sequence (conversion specifier) is always 2 characters starting with a '' | ||
| - | The following conversion specifiers may be used((The [[# | + | The following conversion specifiers may be used((The [[# |
| ^Category^Format Characters^Description^Example Return Values^ | ^Category^Format Characters^Description^Example Return Values^ | ||
| - | |**Day**|%a|An abbreviated textual representation of the day|Sun through Sat| | + | |**Day**|'' |
| - | |:::|%A|A full textual representation of the day|Sunday through Saturday| | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |:::|%e|Day of the month, with a space preceding single digits.|1 to 31| | + | |:::|'' |
| - | |:::|%j|Day of the year, 3 digits with leading zeros|001 to 366| | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |**Week**|%U|Week number of the given year, starting with the first Sunday as the first week|13 (for the 13th full week of the year)| | + | |**Week**|'' |
| - | |::: | + | |:::|'' |
| - | |:::|%W|A numeric representation of the week of the year, starting with the first Monday as the first week|46 (for the 46th week of the year beginning with a Monday)| | + | |:::|'' |
| - | |**Month**|%b|Abbreviated month name, based on the locale|Jan through Dec| | + | |**Month**|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |:::|%m|Two digit representation of the month|01 (for January) through 12 (for December)| | + | |:::|'' |
| - | |**Year**|%C|Two digit representation of the century (year divided by 100, truncated to an integer)|19 for the 20th Century| | + | |**Year**|'' |
| - | |:::|%g|Two digit representation of the year going by ISO-8601: | + | |:::|'' |
| - | |:::|%G|The full four-digit version of %g|2008 for the week of January 3, 2009| | + | |:::|'' |
| - | |:::|%y|Two digit representation of the year|09 for 2009, 79 for 1979| | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |**Time**|%H|Two digit representation of the hour in 24-hour format|00 through 23| | + | |**Time**|'' |
| - | |::: | + | |:::|'' |
| - | |:::|%I|Two digit representation of the hour in 12-hour format|01 through 12| | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |:::|%M|Two digit representation of the minute|00 through 59| | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |:::|%S|Two digit representation of the second|00 through 59| | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |:::|%z|The time zone offset. //Currently not supported on the Wattmon.// | + | |:::|'' |
| - | |:::|%Z|The time zone abbreviation. //Currently not supported on the Wattmon.// | + | |:::|'' |
| - | |**Time and Date Stamps**|%c|Preferred date and time stamp based on locale|Tue Feb 5 00:45:10 2009 for February 5, 2009 at 12:45:10 AM| | + | |**Time and Date Stamps**|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |::: | + | |:::|'' |
| - | |**Miscellaneous**|%n|A newline character (" | + | |**Miscellaneous**|'' |
| - | |:::|%t|A Tab character (" | + | |:::|'' |
| - | |:::|%%|A literal percentage character | + | |:::|'' |
| ====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, with optional calibration | + | [[settime()]] - Set the system time from a Linux Timestamp, with optional calibration |
| - | [[time()]] - Return current system timestamp | + | [[time()]] - Return |
| - | [[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 |