The library documents itself · Internationalization
stzDuration
41 own methods · 1 forms written with extensions, listed under their method
the source: base/datetime/stzDuration.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: 1 come from the library's tests; 22 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzDuration("3 hours 25 minutes 42 seconds"). 18 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
(no comment in the source: the name reads as a sentence) total seconds 1 examples runno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.TotalSeconds()
#--> 12342composed from the signature, run for this pageToSeconds
(no comment in the source: the name reads as a sentence) to secondsno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToSeconds()
#--> 12342composed from the signature, run for this pageTotalMinutes
(no comment in the source: the name reads as a sentence) total minutesno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.TotalMinutes()
#--> 205composed from the signature, run for this pageToMinutes
(no comment in the source: the name reads as a sentence) to minutesno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToMinutes()
#--> 205composed from the signature, run for this pageTotalHours
(no comment in the source: the name reads as a sentence) total hoursno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.TotalHours()
#--> 3composed from the signature, run for this pageToHours
(no comment in the source: the name reads as a sentence) to hoursno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToHours()
#--> 3composed from the signature, run for this pageTotalDays
(no comment in the source: the name reads as a sentence) total daysno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.TotalDays()
#--> 0composed from the signature, run for this pageToDays
(no comment in the source: the name reads as a sentence) to daysno extension
Days
(no comment in the source: the name reads as a sentence) daysno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Days()
#--> 0composed from the signature, run for this pageHours
(no comment in the source: the name reads as a sentence) hoursno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Hours()
#--> 3composed from the signature, run for this pageMinutes
(no comment in the source: the name reads as a sentence) minutesno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Minutes()
#--> 25composed from the signature, run for this pageSeconds
(no comment in the source: the name reads as a sentence) secondsno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Seconds()
#--> 42composed from the signature, run for this page(no comment in the source: the name reads as a sentence) milliseconds 1 examples runno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Milliseconds()
#--> 0composed from the signature, run for this pageComponents
(no comment in the source: the name reads as a sentence) componentsno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? @@( o1.Components() )
#--> [ [ "days", 0 ], [ "hours", 3 ], [ "minutes", 25 ], [ "seconds", 42 ], [ "milliseconds", 0 ] ]composed from the signature, run for this page(no comment in the source: the name reads as a sentence) to string 2 examples runalso written: Content · Duration
oDuration = new stzDuration(3665) ? oDuration.Content() # Or ToString() or Duration() #--> 1:01:05library testQCSXTZZZIBWU
(no comment in the source: the name reads as a sentence) to human 2 examples runno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToHuman()
#--> 3 hours, 25 minutes, and 42 secondscomposed from the signature, run for this page(no comment in the source: the name reads as a sentence) to compact 1 examples runno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToCompact()
#--> 3h 25m 42scomposed from the signature, run for this pageToSimple
(no comment in the source: the name reads as a sentence) to simpleno extension
operator
Arithmetic operatorsno extension
Compare
(no comment in the source: the name reads as a sentence) compareno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Compare(3)
#--> 1composed from the signature, run for this pageIsEqualTo
Comparison methodsno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsEqualTo(3)
#--> 0composed from the signature, run for this pageIsLessThan
(no comment in the source: the name reads as a sentence) is less thanno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsLessThan(3)
#--> 0composed from the signature, run for this pageIsGreaterThan
(no comment in the source: the name reads as a sentence) is greater thanno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsGreaterThan(3)
#--> 1composed from the signature, run for this pageIsBetween
(no comment in the source: the name reads as a sentence) is betweenno extension
IsZero
(no comment in the source: the name reads as a sentence) is zerono extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsZero()
#--> 0composed from the signature, run for this pageIsPositive
(no comment in the source: the name reads as a sentence) is positiveno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsPositive()
#--> 1composed from the signature, run for this pageIsNegative
(no comment in the source: the name reads as a sentence) is negativeno extension
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsNegative()
#--> 0composed from the signature, run for this pageAdd
Modification methodsno extension
Subtract
(no comment in the source: the name reads as a sentence) subtractno extension
Multiply
(no comment in the source: the name reads as a sentence) multiplyno extension
Divide
(no comment in the source: the name reads as a sentence) divideno extension
AddDays
(no comment in the source: the name reads as a sentence) add daysno extension
AddHours
(no comment in the source: the name reads as a sentence) add hoursno extension
AddMinutes
(no comment in the source: the name reads as a sentence) add minutesno extension
AddSeconds
(no comment in the source: the name reads as a sentence) add secondsno extension
AddMilliseconds
(no comment in the source: the name reads as a sentence) add millisecondsno extension
ParseDurationString
Utilityno extension
Copy
(no comment in the source: the name reads as a sentence) copyno extension
Clone
(no comment in the source: the name reads as a sentence) cloneno extension
JoinParts
(no comment in the source: the name reads as a sentence) join partsno extension

