LocalTime constructor for hours:minutes case (low prio) #53

Closed
GoogleCodeExporter opened this Issue Mar 15, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter
It would be nice to have a LocalTime constructor for just the (Hours, Minutes) 
case as often I want to create a time like 18:30.

Making the second optional on this constructor would be great, or a separate 
constructor:

        public LocalTime(int hour, int minute, int second = 0)

Original issue reported on code.google.com by HighTech...@gmail.com on 18 Apr 2012 at 5:18

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 15, 2015

I don't want to use optional parameters in a project targeting .NET 3.5 (and 
thus C# 3 users) but it seems reasonable to add another constructor.

Original comment by jonathan.skeet on 18 Apr 2012 at 6:00

  • Changed state: Accepted
I don't want to use optional parameters in a project targeting .NET 3.5 (and 
thus C# 3 users) but it seems reasonable to add another constructor.

Original comment by jonathan.skeet on 18 Apr 2012 at 6:00

  • Changed state: Accepted
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 15, 2015

Fixed in revisions 80fa09a8b78c and af6df5144927.

Original comment by jonathan.skeet on 18 Apr 2012 at 10:11

  • Changed state: Fixed
Fixed in revisions 80fa09a8b78c and af6df5144927.

Original comment by jonathan.skeet on 18 Apr 2012 at 10:11

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment