Navigation Menu

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

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

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

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

GoogleCodeExporter opened this issue Mar 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant