Variables (time)

Here are variables related to time.


Months

namevaluenamevalue
january1 july7
february2 august8
march3 september9
april4 october10
may5 november11
june6 december12
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.

Week Days

namevaluenamevalue
monday1 friday5
tuesday2 saturday6
wednesday3 sunday7
thursday4

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

Never

nametype
nevertime
This is an empty moment in time. For example, creation time of a nonexistent file has this value.

Now

nametype
nowtime
Current moment in time including all its attributes: year, month, day, hour, minute, second.

Today

nametype
todaytime
Today date without clock.

Tomorrow

nametype
tomorrowtime
Tomorrow date without clock.

Yesterday

nametype
yesterdaytime

Yesterday date without clock.