Time formatting: Difference between revisions
Appearance
No edit summary |
|||
| Line 22: | Line 22: | ||
!Full Form | !Full Form | ||
|- | |- | ||
|45'''s'''||45 seconds | |45'''s''' | ||
|rowspan="2"|45 seconds | |||
|- | |||
|45 | |||
|- | |- | ||
|1'''m'''30'''s''' | |1'''m'''30'''s''' | ||
|rowspan=" | |rowspan="3"|1 minute and 30 seconds | ||
|- | |- | ||
|90'''s''' | |90'''s''' | ||
|- | |||
|90 | |||
|- | |- | ||
|1'''h'''30'''m''' | |1'''h'''30'''m''' | ||
| Line 34: | Line 39: | ||
|90'''m''' | |90'''m''' | ||
|- | |- | ||
|5400 | |5400 | ||
|- | |- | ||
|2'''d'''10'''h''' | |2'''d'''10'''h''' | ||
Revision as of 03:38, 22 July 2013
fCraft uses a compact way to represent time intervals. Here is a brief explaination:
Format
The string is made up of one or more pairs of numbers and letters. The letter stands for different units:
| s | seconds |
| m | minutes |
| h | hours |
| d | days |
| w | weeks |
You may combine different units in the same string. Do not use spaces. If no units are given, given number is treated as number of seconds. See examples below.
Examples
| Compact Form | Full Form |
|---|---|
| 45s | 45 seconds |
| 45 | |
| 1m30s | 1 minute and 30 seconds |
| 90s | |
| 90 | |
| 1h30m | 1 hour and 30 minutes |
| 90m | |
| 5400 | |
| 2d10h | 2 days and 10 hours |
| 1w2d3h | 1 week, 2 days, and 3 hours |