Variables (time)
Here are variables related to time.
| name | value | name | value |
| january | 1 |
july | 7 |
| february | 2 |
august | 8 |
| march | 3 |
september | 9 |
| april | 4 |
october | 10 |
| may | 5 |
november | 11 |
| june | 6 |
december | 12 |
English month names are quite long to write, so it is tempting to use numbers instead of them.
On the other hand, keywords may increase code readability.
| name | value | name | value |
| monday | 1 |
friday | 5 |
| tuesday | 2 |
saturday | 6 |
| wednesday | 3 |
sunday | 7 |
| thursday | 4 |
|
Days of the week are numbered in Perun2 from 1 (Monday) to 7 (Sunday).
By the use of corresponding constant words instead of numbers, ambiguity and confusion can be easily avoided.
Time variables
This is an empty moment in time. For example, creation time of a nonexistent file has this value.
Current moment in time including all its attributes: year, month, day, hour, minute, second.
Today date without clock.
Tomorrow date without clock.
Yesterday date without clock.