Log in | Back to darenet.org

C/durations

 
(2 intermediate revisions not shown)
Line 1: Line 1:
-
{{Services|CHANSERV - Command: HELP DURATIONS}}
+
<span class="cmdsyn">HELP DURATIONS</span>
-
{{ServicesDesc2 | syntax = /ChanServ HELP DURATIONS
+
 
-
|main = This is the syntax used for commands (in all services) that require time durations.
+
This is the syntax used for commands (in all services) that require time durations.
A time duration is made up of numbers and units. Multiple units may be also be specified in a row.
A time duration is made up of numbers and units. Multiple units may be also be specified in a row.
-
Valid unit letters are:
+
Valid unit letters are (case sensitive):
-
<table><tr>
+
{| class="simpletable" width="90%" style="font-size: 90%;"
-
<td width="45px">'''y'''</td>
+
|-
-
<td>- Years (365 days)</td>
+
| style="width: 120px;"|'''y'''
-
</tr><tr>
+
| Years (365 days)
-
<td>'''M'''</td>
+
|-
-
<td>- Months (30 days)</td>
+
| '''M'''
-
</tr><tr>
+
| Months (30 days)
-
<td>'''w'''</td>
+
|-
-
<td>- Weeks (7 days)</td>
+
| '''w'''
-
</tr><tr>
+
| Weeks (7 days)
-
<td>'''d'''</td>
+
|-
-
<td>- Days (24 hours)</td>
+
| '''d'''
-
</tr><tr>
+
| Days (24 hours)
-
<td>'''h'''</td>
+
|-
-
<td>- Hours (60 minutes)</td>
+
| '''h'''
-
</tr><tr>
+
| Hours (60 minutes)
-
<td>'''m'''</td>
+
|-
-
<td>- Minutes (60 seconds)</td>
+
| '''m'''
-
</tr><tr>
+
| Minutes (60 seconds)
-
<td>'''s'''</td>
+
|-
-
<td>- Seconds</td>
+
| '''s'''
-
</tr><tr>
+
| Seconds
-
<td><br></td>
+
|-
-
<td></td>
+
|}
-
</tr><tr>
+
 
-
<td><u>Examples:</u></td>
+
===Examples===
-
<td></td>
+
{| class="srvcscmd" width="90%" style="font-size: 90%;"
-
</tr><tr>
+
|-
-
<td><br></td>
+
| style="width: 114px;"| '''5d'''
-
<td></td>
+
| 5 days
-
</tr><tr>
+
|-
-
<td>'''5d'''</td>
+
| '''1y2M'''
-
<td>- 5 days</td>
+
| 1 year, 2 months (total of 425 days)
-
</tr><tr>
+
|-
-
<td>'''1y2M'''</td>
+
| '''1d1h'''
-
<td>- 1 year and 2 months (425 days)</td>
+
| 1 day, 1 hour (total of 25 hours)
-
</tr><tr>
+
|-
-
<td>'''1d1h'''</td>
+
| '''1h25m30s'''
-
<td>- 1 day and 1 hour (25 hours)</td>
+
| 1 hour, 25 minutes, 30 seconds
-
</tr><tr>
+
|-
-
<td>'''1h25m30s'''</td>
+
|}
-
<td>- 1 hour, 25 minutes and 30 seconds</td>
+
 
-
</tr></table>
+
 
-
|see = [[ChanServ|HELP]]}}
+
<html><table align="right"><tr><td><a href="javascript:history.go(-1)">[Go Back]</a></td></tr></table></html>
<html><table align="right"><tr><td><a href="javascript:history.go(-1)">[Go Back]</a></td></tr></table></html>

Current revision as of 17:02, 11 October 2012

HELP DURATIONS

This is the syntax used for commands (in all services) that require time durations.

A time duration is made up of numbers and units. Multiple units may be also be specified in a row.

Valid unit letters are (case sensitive):

y Years (365 days)
M Months (30 days)
w Weeks (7 days)
d Days (24 hours)
h Hours (60 minutes)
m Minutes (60 seconds)
s Seconds

Examples

5d 5 days
1y2M 1 year, 2 months (total of 425 days)
1d1h 1 day, 1 hour (total of 25 hours)
1h25m30s 1 hour, 25 minutes, 30 seconds


[Go Back]