Softanza
StartFrançais
Softanza
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 run
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.TotalSeconds()
#--> 12342
composed from the signature, run for this page
no extension
ToSeconds
(no comment in the source: the name reads as a sentence) to seconds
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToSeconds()
#--> 12342
composed from the signature, run for this page
no extension
TotalMinutes
(no comment in the source: the name reads as a sentence) total minutes
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.TotalMinutes()
#--> 205
composed from the signature, run for this page
no extension
ToMinutes
(no comment in the source: the name reads as a sentence) to minutes
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToMinutes()
#--> 205
composed from the signature, run for this page
no extension
TotalHours
(no comment in the source: the name reads as a sentence) total hours
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.TotalHours()
#--> 3
composed from the signature, run for this page
no extension
ToHours
(no comment in the source: the name reads as a sentence) to hours
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToHours()
#--> 3
composed from the signature, run for this page
no extension
TotalDays
(no comment in the source: the name reads as a sentence) total days
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.TotalDays()
#--> 0
composed from the signature, run for this page
no extension
ToDays
(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) days
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Days()
#--> 0
composed from the signature, run for this page
no extension
Hours
(no comment in the source: the name reads as a sentence) hours
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Hours()
#--> 3
composed from the signature, run for this page
no extension
Minutes
(no comment in the source: the name reads as a sentence) minutes
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Minutes()
#--> 25
composed from the signature, run for this page
no extension
Seconds
(no comment in the source: the name reads as a sentence) seconds
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Seconds()
#--> 42
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) milliseconds 1 examples run
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Milliseconds()
#--> 0
composed from the signature, run for this page
no extension
Components
(no comment in the source: the name reads as a sentence) components
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 extension
(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:05
library testQCSXTZZZIBWU
(no comment in the source: the name reads as a sentence) to human 2 examples run
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToHuman()
#--> 3 hours, 25 minutes, and 42 seconds
composed from the signature, run for this page
no extension
(no comment in the source: the name reads as a sentence) to compact 1 examples run
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.ToCompact()
#--> 3h 25m 42s
composed from the signature, run for this page
no extension
ToSimple
(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) compare
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.Compare(3)
#--> 1
composed from the signature, run for this page
no extension
IsEqualTo
Comparison methods
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsEqualTo(3)
#--> 0
composed from the signature, run for this page
no extension
IsLessThan
(no comment in the source: the name reads as a sentence) is less than
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsLessThan(3)
#--> 0
composed from the signature, run for this page
no extension
IsGreaterThan
(no comment in the source: the name reads as a sentence) is greater than
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsGreaterThan(3)
#--> 1
composed from the signature, run for this page
no extension
IsBetween
(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 zero
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsZero()
#--> 0
composed from the signature, run for this page
no extension
IsPositive
(no comment in the source: the name reads as a sentence) is positive
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsPositive()
#--> 1
composed from the signature, run for this page
no extension
IsNegative
(no comment in the source: the name reads as a sentence) is negative
composed example
o1 = new stzDuration("3 hours 25 minutes 42 seconds")
? o1.IsNegative()
#--> 0
composed from the signature, run for this page
no extension
Add
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