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

How can i get current time with selected date? #440

Closed
adavan2107 opened this issue Oct 6, 2016 · 4 comments
Closed

How can i get current time with selected date? #440

adavan2107 opened this issue Oct 6, 2016 · 4 comments

Comments

@adavan2107
Copy link

i am stuck in getting current time with selected date please help

Thanks,
A.Adavan

@WenchaoD
Copy link
Owner

WenchaoD commented Oct 6, 2016

@adavan2107 I don’t quite get your point.

@adavan2107
Copy link
Author

@WenchaoD when selecting single date from calendar date and time i actually get was 06-10-2016 12:00 Am how can i get actual time instead of 12:00 pm

Thanks,
A.Adavan

@WenchaoD
Copy link
Owner

WenchaoD commented Oct 6, 2016

This repo only supports year、month and day unit. But you can change the hour/miniute/second to any value by this function of NSCalendar.

- (nullable NSDate *)dateBySettingHour:(NSInteger)h minute:(NSInteger)m second:(NSInteger)s ofDate:(NSDate *)date options:(NSCalendarOptions)opts NS_AVAILABLE(10_9, 8_0);

@adavan2107
Copy link
Author

Thanks @WenchaoD you save my day..

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

2 participants