From WikiChip
Difference between revisions of "mirc/identifiers/$date"
< mirc‎ | identifiers

(See Also)
 
(7 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 ==
None
+
* '''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 ==
'''Echo the full date to the active window'''
+
<source lang="mIRC">Echo today's full date to the active window in dd/mm/yyyy format
<source lang="mIRC">//echo -a $date</source>
+
//echo -a $date
 +
Echo only the year-month for the specified ctime number
 +
//echo -a $date(1234567890,yyyy-mm)
 +
</source>
  
 
== Compatibility ==
 
== Compatibility ==
Added: mIRC v3.5
+
{{mIRC compatibility|3.5}}
 
 
Added On: 07/08/95
 
 
 
 
== See Also ==
 
== See Also ==
[[$date identifier - mIRC|$date]]
+
{{collist
 
+
|count = 3
[[$fulldate identifier - mIRC|$fulldate]]
+
|style = width: 60%; display: inherit;
 
+
|
[[Category:mIRC identifiers]]
+
* {{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

$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.

See Also[edit]