From WikiChip
Difference between revisions of "mirc/identifiers/$date"
m (Bot: Fixing compatibility) |
Maroonbells (talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | '''$date''' can be used to return the current date in day/month/year format. | + | {{mirc title|$date Identifier}}'''$date''' can be used to return the current date in day/month/year format. |
== Synopsis == | == Synopsis == | ||
− | <pre>$date</pre> | + | <pre>$date |
+ | $date(time[,format]) | ||
+ | </pre> | ||
== Parameters == | == Parameters == | ||
− | + | * '''time''' Optional ctime number. Default when not used is the current ctime | |
+ | * '''format''' Optional format letters same as {{mIRC|$asctime}} | ||
+ | |||
+ | '''Note: This identifier has identical syntax as $asctime. The only difference is the default displayed time when no format string is used.''' | ||
== Example == | == Example == | ||
− | ' | + | <source lang="mIRC">Echo today's full date to the active window in dd/mm/yyyy format |
− | + | //echo -a $date | |
+ | Echo only the year-month for the specified ctime number | ||
+ | //echo -a $date(1234567890,yyyy-mm) | ||
+ | </source> | ||
== Compatibility == | == Compatibility == | ||
{{mIRC compatibility|3.5}} | {{mIRC compatibility|3.5}} | ||
− | |||
== See Also == | == See Also == | ||
− | {{mIRC|$ | + | {{collist |
− | + | |count = 3 | |
− | {{mIRC|$ | + | |style = width: 60%; display: inherit; |
− | {{mIRC | + | | |
− | + | * {{mIRC|$asctime}} | |
− | + | * {{mIRC|$fulldate}} | |
+ | * {{mIRC|$adate}} | ||
+ | * {{mIRC|$time}} | ||
+ | * {{mIRC|$ctime}} | ||
+ | * {{mIRC|$gmt}} | ||
+ | * {{mIRC|$ticks}} | ||
+ | * {{mIRC|$day}} | ||
+ | * {{mIRC|$daylight}} | ||
+ | * {{mIRC|$timezone}} | ||
+ | * {{mIRC|$duration}} | ||
+ | * {{mIRC|$uptime}} | ||
+ | }} |
Latest revision as of 13:03, 22 May 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$date can be used to return the current date in day/month/year format.
Synopsis[edit]
$date $date(time[,format])
Parameters[edit]
- time Optional ctime number. Default when not used is the current ctime
- format Optional format letters same as $asctime
Note: This identifier has identical syntax as $asctime. The only difference is the default displayed time when no format string is used.
Example[edit]
Echo today's full date to the active window in dd/mm/yyyy format //echo -a $date Echo only the year-month for the specified ctime number //echo -a $date(1234567890,yyyy-mm)
Compatibility[edit]
Added: mIRC v3.5
Added on: 07 Aug 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.