Skip to content

truncate-to is confusing and should be replaced by trunc-dateΒ #495

@jubilatious1

Description

@jubilatious1

https://docs.raku.org/routine/truncated-to

truncate-to is an unfortunately-named function, since truncate is a common term and truncate-to gives no hint that DateTime is involved.

Perl reference: https://perldoc.perl.org/functions/truncate

A much better name would be trunc-date, possibly with a :to named-parameter.

(migrating from: https://www.nntp.perl.org/group/perl.perl6.users/2025/09/msg11503.html).

Metadata

Metadata

Assignees

No one assigned

    Labels

    languageChanges to the Raku Programming Language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions