-
Notifications
You must be signed in to change notification settings - Fork 330
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
Add LocalTime.FromMinutesSinceMidnight #1366
Comments
Yes, we can do this. Presumably you're now just using |
|
Doh :) (And that's why it's worth having as a method, of course, to prevent stupid mistakes like that...) |
Fixes nodatime#1366 (FromHoursSinceMidnight is a little less useful, but I've included it for consistency/completeness.)
Fixes nodatime#1366 (FromHoursSinceMidnight is a little less useful, but I've included it for consistency/completeness.)
Fixes #1366 (FromHoursSinceMidnight is a little less useful, but I've included it for consistency/completeness.)
LocalTime
has methods the following factory methods:FromSecondsSinceMidnight()
FromMillisecondsSinceMidnight()
FromTicksSinceMidnight()
Could a
FromMinutesSinceMidnight()
method be added? It would be useful for something I am trying to do (we currently store a local time in minutes since midnight in our DB, so this method would make the conversion from DB types into NodaTime types easier).A
FromHoursSinceMidnight()
method would complete the set, but I can't see it being as useful because you can just call the hour/minute ctor with0
minutes.The text was updated successfully, but these errors were encountered: