Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with_hour error message #42

Open
bokutin opened this issue Dec 22, 2019 · 1 comment
Open

with_hour error message #42

bokutin opened this issue Dec 22, 2019 · 1 comment
Labels

Comments

@bokutin
Copy link

bokutin commented Dec 22, 2019

% perl -E 'use Time::Moment; Time::Moment->now->with_hour(24)'
Parameter 'hour' is out of the range [1, 23] at -e line 1.

[0,23] ?

There is no problem in use.

@chansen
Copy link
Owner

chansen commented Jul 23, 2023

I’m not sure I like the idea of accepting 24 as a valid hour, that would cause the date to roll forward by one day.

@chansen chansen added the design label Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants