Skip to content

Add LocalTime.FromMinutesSinceMidnight #1366

@DanCarterGMSL

Description

@DanCarterGMSL

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 with 0 minutes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions