| Documentation | 1. Calculates date properties as an amount of milliseconds since January 1, 1970, 00:00:00 GMT:
Returns the current date as an amount of milliseconds since the 1st January 1970: $getTime{convert}{date}{month}{year}
Parameters:
convert, a flag to indicate that the given properties are to be converted in an amount of milliseconds.
date, the day of the month between 1 - 31. month, the month of the year between 1 - 12.
year, the year.
Returns:
an amount of milliseconds since the 1st January 1970.
2. Returns the current day of the month: $getTime{date}{timestamp}
Parameters:
date, a flag to indicate that the current day of the month is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the current day of the month between 1 - 31.
3. Returns a formated date string: $getTime{datestr}{timestamp}
Parameters:
datestr, a flag to indicate that the formated current date is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
a date of the form 'day.month.year'.
4. Returns a formated date and time string: $getTime{datetimestr}{timestamp}
Parameters:
datetimestr, a flag to indicate that the formated current date is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
a date of the form 'day.month.year, hours:minutes:seconds'.
5. Returns number of the day of the week of the current date: $getTime{day}{timestamp}
Parameters:
day, a flag to indicate that the number of the day of the week of the current day is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
0 for Sunday, 1 for Monday, 2 for Tuesday, 3 for Wednesday, 4 for Thursday, 5 for Friday and 6 for Saturday.
6. Returns the name of the current day of the week: $getTime{daystr}{timestamp}
Parameters:
daystr, a flag to indicate that the name of the day of the week is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the name of the current day of the week between Sun - Sat.
7. Returns the name of the current day of the week: $getTime{daystr2}{timestamp}
Parameters:
daystr2, a flag to indicate that the name of the current day of the week is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the name of the current day of the week between Sunday - Saturday.
8. Returns the hour of the current day: $getTime{hours}{timestamp}
Parameters:
hours, a flag to indicate that the hour of the current date is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the hour of the current date between 0 - 23.
9. Returns number of minutes past the hour of the current date: $getTime{minutes}{timestamp}
Parameters:
minutes, a flag to indicate tha the minutes of the current date are requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the minutes past the hour of the current date, between 0 - 59.
10. Returns number of minutes past the hour of the current date: $getTime{minutes2}{timestamp}
Parameters:
minutes2, a flag to indicate tha the minutes of the current date are requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the minutes past the hour of the current date, between 00 - 59.
11. Returns the number of the month of the year of the current date: $getTime{month}{timestamp}
Parameters:
month, a flag to indicate that the number of the month of the year is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the number of the month of the year of the current date, between 1 - 12.
12. Returns the name of the month of the year of the current date: $getTime{monthstr}{timestamp}
Parameters:
monthstr, a flag to indicate that the name of the month is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the name of the month of the year of the current date, between Jan - Dec.
13. Returns the name of the month of the year of the current date: $getTime{monthstr2}{timestamp}
Parameters:
monthstr2, a flag to indicate that the name of the month is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the name of the month of the year of the current date, between January - December.
14. Returns the seconds past the minute of the current date: $getTime{seconds}{timestamp}
Parameters:
seconds, a flag to indicate that the seconds past the minute of the current date are requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the seconds past the minute of the current date, between 0 - 59.
15. Returns the seconds past the minute of the current date: $getTime{seconds2}{timestamp}
Parameters:
seconds2, a flag to indicate that the seconds past the minute of the current date are requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the seconds past the minute of the current date, between 00 - 59.
16. Returns the current date as an amount of milliseconds since January 1, 1970, 00:00:00 GMT: $getTime{time}{timestamp}
Parameters:
time, a flag to indicate that the amount of milliseconds past since January 1, 1970, 00:00:00 GMT.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the amount of milliseconds past since January 1, 1970, 00:00:00 GMT.
17. Returns a formated string representing the current time: $getTime{timestr}{timestamp}
Parameters:
timestr, a flag to indicate that the current time is requested as a formated string.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns:
the current time in the form 'hours:minutes:seconds'.
18. Returns a unique timestamp: $getTime{unique}
Parameters:
unique, a flag that indicates that a unuque timestamp is requested.
Returns:
a unique timestamp ; Note: the return value of this function can be used as an identifier.
19. Returns the year of the current date: $getTime{year}{timestamp}
Parameters:
year, a flag to indicate that the year of the current date is requested.
timestamp, an optional parameter to specify a timestamp other than the current. Defaults to the current timestamp.
Returns: the year of the current date. |