User`s guide
APPENDIX A Function Reference
User’s Guide 147
Examples uTimeDiffMs("18:34:20”, “18:34:21”) // returns 1000
uTimeDiffMs("18:34:20”, “18:34:21.200”) // returns 1200
uWeek
Description Returns the week of the date specified.
Note Please refer to the “Working with Dates and Times” section for detailed
information about the possible modifier arguments.
Syntax string uWeek([modifiers])
Parameters
string modifiers (optional)
String specifying a date or date calculation. The default is the
now modifier.
Examples To get the week from a date:
uWeek("now") // returns current week
uWeek("1969-03-13 10:22:23.231") // returns "10"
uWeekday
Description Returns the week of the date specified. The returned values are from 0
(=sunday) to 6.
Note Refer to the “Working with Dates and Times” section for detailed
information about the possible modifier arguments.
Syntax string uWeekday([modifiers])
Parameters
string modifiers (optional)
String specifying a date or date calculation. The default is the
now modifier.
Examples Get the weekday from a date
uWeekday("now") // returns current weekday number
uWeekday("1969-03-13 10:22:23.231") // returns "4" for
Thursday