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
About This Hashtag
#duration
3 posts
Last used Jul 18
#duration
3 posts· Last used Jul 18
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/
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/
You've seen all posts