Softanza
StartFrançais
Softanza
The library documents itself · Internationalization

stzTime

78 own methods · 9 forms written with extensions, listed under their method

the source: base/datetime/stzTime.ring(opens in a new tab) · All classes · The area reference: Internationalization

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 23 come from the library's tests; 34 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ]). 21 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
ParseStringTime
(no comment in the source: the name reads as a sentence) parse string timeno extension
AddSeconds
(no comment in the source: the name reads as a sentence) add secondsin the section arithmetic operationsQCSXTZZZIBWU
(no comment in the source: the name reads as a sentence) add minutes 1 examples runin the section arithmetic operationsQCSXTZZZIBWU
(no comment in the source: the name reads as a sentence) add hours 3 examples runin the section arithmetic operations
oTime = StzTimeQ("10:00:00")
? oTime.AddHoursQ(2).AddMinutesQ(30).ToString()
#--> 12:30:00
library testQCSXTZZZIBWU
AddMilliseconds
(no comment in the source: the name reads as a sentence) add millisecondsin the section arithmetic operationsQCSXTZZZIBWU
SubtractSeconds
(no comment in the source: the name reads as a sentence) subtract secondsin the section arithmetic operationsQCSXTZZZIBWU
SubtractMinutes
(no comment in the source: the name reads as a sentence) subtract minutesin the section arithmetic operationsQCSXTZZZIBWU
SubtractHours
(no comment in the source: the name reads as a sentence) subtract hoursin the section arithmetic operationsQCSXTZZZIBWU
SubtractMilliseconds
(no comment in the source: the name reads as a sentence) subtract millisecondsin the section arithmetic operationsQCSXTZZZIBWU
operator
operator overloadingno extension
(no comment in the source: the name reads as a sentence) secs to 1 examples runin the section comparison methods
oTime1 = new stzTime("10:00:00")
oTime2 = new stzTime("14:30:00")
? oTime1.SecsTo(oTime2)
? oTime1.MinutesTo(oTime2)
? oTime1.HoursTo(oTime2)
#--> 16200
#--> 270
#--> 4
library testno extension
MSecsTo
(no comment in the source: the name reads as a sentence) m secs toin the section comparison methodsno extension
(no comment in the source: the name reads as a sentence) minutes to 1 examples runin the section comparison methods
oTime1 = new stzTime("10:00:00")
oTime2 = new stzTime("14:30:00")
? oTime1.SecsTo(oTime2)
? oTime1.MinutesTo(oTime2)
? oTime1.HoursTo(oTime2)
#--> 16200
#--> 270
#--> 4
library testno extension
(no comment in the source: the name reads as a sentence) hours to 1 examples runin the section comparison methods
oTime1 = new stzTime("10:00:00")
oTime2 = new stzTime("14:30:00")
? oTime1.SecsTo(oTime2)
? oTime1.MinutesTo(oTime2)
? oTime1.HoursTo(oTime2)
#--> 16200
#--> 270
#--> 4
library testno extension
(no comment in the source: the name reads as a sentence) is before 2 examples runin the section comparison methods
oTime1 = new stzTime("10:00:00")
oTime2 = new stzTime("14:00:00")
? oTime1.IsBefore(oTime2)
? oTime1.IsAfter(oTime2)
? oTime1.IsEqualTo("10:00:00")
#--> 1
#--> 0
#--> 1
library testno extension
(no comment in the source: the name reads as a sentence) is after 2 examples runin the section comparison methods
oTime1 = new stzTime("10:00:00")
oTime2 = new stzTime("14:00:00")
? oTime1.IsBefore(oTime2)
? oTime1.IsAfter(oTime2)
? oTime1.IsEqualTo("10:00:00")
#--> 1
#--> 0
#--> 1
library testno extension
(no comment in the source: the name reads as a sentence) is equal to 1 examples runalso written: IsEqualin the section comparison methods
oTime1 = new stzTime("10:00:00")
oTime2 = new stzTime("14:00:00")
? oTime1.IsBefore(oTime2)
? oTime1.IsAfter(oTime2)
? oTime1.IsEqualTo("10:00:00")
#--> 1
#--> 0
#--> 1
library testno extension
(no comment in the source: the name reads as a sentence) is between 1 examples runin the section comparison methods
oTime = new stzTime("12:00:00")
? oTime.IsBetween("10:00:00", :And = "14:00:00")
? oTime.IsBetween("13:00:00", :And = "14:00:00")
#--> 1
#--> 0
library testno extension
(no comment in the source: the name reads as a sentence) is am 1 examples runin the section utility checks
oTime1 = new stzTime("09:00:00")
? oTime1.IsAM()
oTime2 = new stzTime("15:00:00")
? oTime2.IsPM()
#--> 1
#--> 1
library testno extension
(no comment in the source: the name reads as a sentence) is pm 1 examples runin the section utility checks
oTime1 = new stzTime("09:00:00")
? oTime1.IsAM()
oTime2 = new stzTime("15:00:00")
? oTime2.IsPM()
#--> 1
#--> 1
library testno extension
(no comment in the source: the name reads as a sentence) is midnight 1 examples runin the section utility checks
oMidnight = new stzTime("00:00:00")
? oMidnight.IsMidnight()
oNoon = new stzTime("12:00:00")
? oNoon.IsNoon()
#--> 1
#--> 1
library testno extension
(no comment in the source: the name reads as a sentence) is noon 1 examples runin the section utility checks
oMidnight = new stzTime("00:00:00")
? oMidnight.IsMidnight()
oNoon = new stzTime("12:00:00")
? oNoon.IsNoon()
#--> 1
#--> 1
library testno extension
(no comment in the source: the name reads as a sentence) is morning 1 examples runin the section utility checks
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.IsMorning()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) is afternoon 2 examples runin the section utility checks
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.IsAfternoon()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) is evening 1 examples runin the section utility checks
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.IsEvening()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) is night 1 examples runin the section utility checks
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.IsNight()
#--> 1
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) is work hours 1 examples runin the section utility checks
oTime1 = new stzTime("10:00:00")
? oTime1.IsWorkHours()
oTime2 = new stzTime("18:00:00")
? oTime2.IsWorkHours()
#--> 1
#--> 0
library testno extension
IsNow
(no comment in the source: the name reads as a sentence) is nowin the section utility checksno extension
(no comment in the source: the name reads as a sentence) hour 1 examples runin the section getters
oTime = new stzTime("14:30:45")
? oTime.Hour()
? oTime.Minute()
? oTime.Second()
#--> 14
#--> 30
#--> 45
library testno extension
HourN
(no comment in the source: the name reads as a sentence) hour nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.HourN()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) hours 1 examples runin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.Hours()
#--> 0
composed from the signature, run for this page
no extension
HoursN
(no comment in the source: the name reads as a sentence) hours nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.HoursN()
#--> 0
composed from the signature, run for this page
no extension
ToHour
(no comment in the source: the name reads as a sentence) to hourin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.ToHour()
#--> 0
composed from the signature, run for this page
no extension
ToHourN
(no comment in the source: the name reads as a sentence) to hour nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.ToHourN()
#--> 0
composed from the signature, run for this page
no extension
ToHours
(no comment in the source: the name reads as a sentence) to hoursin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.ToHours()
#--> 0
composed from the signature, run for this page
no extension
ToHoursN
(no comment in the source: the name reads as a sentence) to hours nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.ToHoursN()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) minute 1 examples runin the section getters
oTime = new stzTime("14:30:45")
? oTime.Hour()
? oTime.Minute()
? oTime.Second()
#--> 14
#--> 30
#--> 45
library testno extension
MinuteN
(no comment in the source: the name reads as a sentence) minute nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.MinuteN()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) minutes 1 examples runin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.Minutes()
#--> 0
composed from the signature, run for this page
no extension
MinutesN
(no comment in the source: the name reads as a sentence) minutes nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.MinutesN()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) second 1 examples runin the section getters
oTime = new stzTime("14:30:45")
? oTime.Hour()
? oTime.Minute()
? oTime.Second()
#--> 14
#--> 30
#--> 45
library testno extension
SecondN
(no comment in the source: the name reads as a sentence) second nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.SecondN()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) seconds 1 examples runin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.Seconds()
#--> 0
composed from the signature, run for this page
no extension
SecondsN
(no comment in the source: the name reads as a sentence) seconds nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.SecondsN()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) millisecond 1 examples runin the section getters
oTime = new stzTime([:Hour = 14, :Minute = 30, :Second = 45, :Millisecond = 123])
? oTime.Millisecond()
? oTime.ToLong()
#--> 123
#--> 14:30:45.123
library testno extension
MillisecondN
(no comment in the source: the name reads as a sentence) millisecond nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.MillisecondN()
#--> 0
composed from the signature, run for this page
no extension
Milliseconds
(no comment in the source: the name reads as a sentence) millisecondsin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.Milliseconds()
#--> 0
composed from the signature, run for this page
no extension
MillisecondsN
(no comment in the source: the name reads as a sentence) milliseconds nin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.MillisecondsN()
#--> 0
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) hour12 1 examples runalso written: Hour12N · HourN12 · Hours12 · Hours12N · HoursN12in the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.Hour12()
#--> 12
composed from the signature, run for this page
no extension
AMPM
(no comment in the source: the name reads as a sentence) ampmin the section getters
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.AMPM()
#--> AM
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) seconds since midnight 1 examples runalso written: ToSecondsSinceMidnightin the section getters
oTime = new stzTime("12:30:45")
? oTime.SecondsSinceMidnight()
? oTime.SecondsUntilMidnight()
#--> 45045
#--> 41355
library testno extension
(no comment in the source: the name reads as a sentence) seconds until midnight 1 examples runalso written: ToSecondsUntilMidnightin the section getters
oTime = new stzTime("12:30:45")
? oTime.SecondsSinceMidnight()
? oTime.SecondsUntilMidnight()
#--> 45045
#--> 41355
library testno extension
NextHour
(no comment in the source: the name reads as a sentence) next hourin the section smart navigation
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.NextHour()
#--> 01:00:00
composed from the signature, run for this page
no extension
PreviousHour
(no comment in the source: the name reads as a sentence) previous hourin the section smart navigation
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.PreviousHour()
#--> 23:00:00
composed from the signature, run for this page
no extension
NextMinute
(no comment in the source: the name reads as a sentence) next minutein the section smart navigation
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.NextMinute()
#--> 00:01:00
composed from the signature, run for this page
no extension
PreviousMinute
(no comment in the source: the name reads as a sentence) previous minutein the section smart navigation
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.PreviousMinute()
#--> 23:59:00
composed from the signature, run for this page
no extension
RoundToNearestHour
(no comment in the source: the name reads as a sentence) round to nearest hourin the section smart navigationno extension
(no comment in the source: the name reads as a sentence) round to nearest minute 1 examples runin the section smart navigationno extension
(no comment in the source: the name reads as a sentence) start of hour 1 examples runin the section smart navigation
oTime = new stzTime("10:45:30")
? oTime.StartOfHour()
? oTime.EndOfHour()
? oTime.Content()
#--> 10:00:00
#--> 10:59:59
#--> 10:45:30
library testno extension
(no comment in the source: the name reads as a sentence) end of hour 1 examples runin the section smart navigation
oTime = new stzTime("10:45:30")
? oTime.StartOfHour()
? oTime.EndOfHour()
? oTime.Content()
#--> 10:00:00
#--> 10:59:59
#--> 10:45:30
library testno extension
(no comment in the source: the name reads as a sentence) to string 7 examples runalso written: Time · Contentin the section formatting
oTime = new stzTime(52245)
? oTime.ToString()
#--> 14:30:45
library testQCSXTZZZIBWU
To12Hour
(no comment in the source: the name reads as a sentence) to12 hourin the section formatting
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.To12Hour()
#--> 0:00:00 AM
composed from the signature, run for this page
no extension
To24Hour
(no comment in the source: the name reads as a sentence) to24 hourin the section formattingno extension
ToShort
(no comment in the source: the name reads as a sentence) to shortin the section formatting
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.ToShort()
#--> 00:00
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) to long 1 examples runin the section formatting
oTime = new stzTime([:Hour = 14, :Minute = 30, :Second = 45, :Millisecond = 123])
? oTime.Millisecond()
? oTime.ToLong()
#--> 123
#--> 14:30:45.123
library testno extension
ToSimple
(no comment in the source: the name reads as a sentence) to simplein the section formatting
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.ToSimple()
#--> 0:00 AM
composed from the signature, run for this page
no extension
human-readable 1 examples run
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.ToHuman()
#--> 12 o'clock AM
composed from the signature, run for this page
no extension
ToRelative
human-readable
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.ToRelative()
#--> in 22 hours
composed from the signature, run for this page
no extension
human-readable 1 examples run
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.PartOfDay()
#--> night
composed from the signature, run for this page
no extension
Copy
utility methodsno extension
IsValid
utility methods
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.IsValid()
#--> 1
composed from the signature, run for this page
no extension
IsAStzTime
utility methods
composed example
o1 = new stzTime([ :Hour = 0, :Minute = 0, :Second = 0 ])
? o1.IsAStzTime()
#--> 1
composed from the signature, run for this page
no extension
pvtIsValidHMS
private helpersno extension
pvtAddTotalSeconds
private helpersno extension
pvtToTotalMs
private helpersno extension
pvtFromTotalMs
private helpersno extension
pvtFormatTime
private helpersno extension