1,544
edits
(Added an example) |
DrinkyBird (talk | contribs) (Correct <tt>TM_DAY</tt> range) Tag: Source edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
=== Parameters === | === Parameters === | ||
* ''timestamp'': The timestamp to localize. | * ''timestamp'': The timestamp to localize. | ||
* ''which'': Which attribute to return. | * ''which'': Which attribute to return; see the [[#Time properties]] table below. | ||
* ''utc'': If true, the timestamp will be localized using the UTC timezone, local timezone otherwise | * ''utc'': If true, the timestamp will be localized using the UTC timezone, local timezone otherwise. | ||
== Time properties == | === Time properties === | ||
{| | {| class="wikitable" | ||
!Property | !Property | ||
!Range | !Range | ||
Line 28: | Line 28: | ||
|- | |- | ||
|<tt>TM_DAY</tt> (3) | |<tt>TM_DAY</tt> (3) | ||
| [ | | [1, 31] | ||
| Days | | Days | ||
|- | |- | ||
Line 44: | Line 44: | ||
|} | |} | ||
== | === Return value === | ||
Localizes the given timestamp and returns an attribute of it. | Localizes the given timestamp and returns an attribute of it. | ||
Note that due to ACS's limitations, the timestamp is suspectible to the [ | Note that due to ACS's limitations, the timestamp is suspectible to the [[wikipedia:Year 2038 problem|year 2038 problem]]. | ||
== Examples == | == Examples == | ||
Line 59: | Line 59: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See | == See also == | ||
*[[SystemTime]] | * [[SystemTime]] | ||
*[[Strftime]] | * [[Strftime]] | ||
[[Category:ACS functions]] |