Editing Date and Time formatting

From FileZilla Wiki
Jump to navigationJump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
== Format specifiers ==
 
== Format specifiers ==
  
Excerpt from the [http://www.kernel.org/doc/man-pages/online/pages/man3/strftime.3.html strftime man page] (please note that not all format specifiers work on all platforms; meaning some do not work on for example Windows):
+
Excerpt from the strftime man page:
  
Ordinary characters placed in the format string are copied to the output without conversion. Conversion specifications are introduced by a '%' character, and terminated by a conversion specifier character, and are replaced in s as follows:
+
Ordinary characters placed in the format string are copied to s without conversion. Conversion specifications are introduced by a '%' character, and terminated by a conversion specifier character, and are replaced in s as follows:
  
{| class=wikitable
+
{| border=1 width=100%
!Format<br />specifier
 
!Description
 
|-
 
 
|%a
 
|%a
 
|The abbreviated weekday name according to the current locale.  
 
|The abbreviated weekday name according to the current locale.  
Line 31: Line 28:
 
|-
 
|-
 
|%D
 
|%D
|Equivalent to %m/%d/%y. (Yecch --- for Americans only. Americans should note that in other countries %d/%m/%y is rather common. This means that in international context this format is ambiguous and should not be used.) (SU)  
+
|Equivalent to %m/%d/%y. (Yecch --- for Americans only. Americans should note that in other countries %d/%m/%y is rather common. This means that in international context this format is ambiguous and should not be used.) (SU) And for Canadians use, and all others with a brain - write it as you say it. [Despite what the Canadian standards are.] This 'nth day of whatever, in the year of our lord ...' has long ago ceased common usage. (BS)
 
|-
 
|-
 
|%e
 
|%e
Line 130: Line 127:
 
|-
 
|-
 
|%z
 
|%z
|    The time-zone as hour offset from UTC. Required to emit RFC 822-conformant dates (using "%a, %d %b %Y %H:%M:%S %z"). (GNU)  
+
|    The time-zone as hour offset from GMT. Required to emit RFC 822-conformant dates (using "%a, %d %b %Y %H:%M:%S %z"). (GNU)  
 
|-
 
|-
 
|%Z
 
|%Z

Please note that all contributions to FileZilla Wiki are considered to be released under the GNU Free Documentation License 1.2 (see FileZilla Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)