#duration

3 posts · Last used 8d

Back to Timeline
ignace nyamagana butera @nyamsprod@phpc.social · Jul 18, 2026
Tokei 0.2.0 introduces support for identified Temporal Value Objects: temporal values that can carry identifiers and preserve their meaning through operations. For instance the following example shows how task identifiers are retained during a union operation. #duration #localtime #php #identifier
0
0
0
ignace nyamagana butera @nyamsprod@phpc.social · Jul 18, 2026
Replying to @nyamsprod@phpc.social
The Duration class also introduces a new modulo() method, complementing dividedInto() by providing an easy way to retrieve the remainder of a duration division. This is especially useful when dealing with circular ranges. #duration #localtime #php #circular-range https://bakame-php.github.io/tokei/
0
0
0
ignace nyamagana butera @nyamsprod@phpc.social · Jul 18, 2026
Tokei 0.2.0 introduces support for dividing one duration by another. The operation returns a DTO exposing the quotient and remainder, giving developers the flexibility to access the result either through its properties or by using array destructuring with asTuple() #duration #localtime #php https://bakame-php.github.io/tokei/
0
2
0

You've seen all posts