Skip to content

RTC and time API pages updated #344

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

Merged
merged 6 commits into from
Dec 4, 2017
Merged

RTC and time API pages updated #344

merged 6 commits into from
Dec 4, 2017

Conversation

deepikabhavnani
Copy link

Updated RTC and Time API document.

@AnotherButler - Changes are valid for mbed-os 5.6 as well, shall I create one more PR for that?

@sg- Please review

deepikabhavnani and others added 4 commits November 29, 2017 14:20
Make minor copy edits.
Fix capitalization and link.
Update content for active voice.
Copy link
Contributor

@AnotherButler AnotherButler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepikabhavnani Please review my changes, and make sure I didn't accidentally change the meaning.

@AnotherButler AnotherButler requested a review from sg- November 29, 2017 20:50
@deepikabhavnani
Copy link
Author

@AnotherButler - Changes look fine, I have corrected one doxy link

Copy link
Contributor

@sg- sg- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but have a questions about one of the statements

### Time hello, world
You can convert time to a human-readable format using `ctime`, `localtime`, `strftime` and other C standard functions.

You cannot use `mktime` and `localtime` C standard library functions in an interrupt handler with the GCC toolchain. We have added dedicated routines for `mktime` and `localtime`, which are optimized and faster then C standard library functions, to overcome this issue.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont understand this sentence. Did we add new functions with the same name?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we added same functions as _rtc_mktime, _rtc_localtime. Will update the doc with new name

@AnotherButler AnotherButler merged commit 82e0a36 into ARMmbed:new_engine Dec 4, 2017
@deepikabhavnani deepikabhavnani deleted the rtc_time branch December 4, 2017 19:43
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

Successfully merging this pull request may close these issues.

3 participants