Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
time.h@26:0421132e6eaf, 2018-01-25 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Jan 25 07:54:54 2018 +0000
- Revision:
- 26:0421132e6eaf
Changed ticks from a count of ns to a fixed fraction of 30bits. This makes it much easier to convert to and from NTP and time_t
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 26:0421132e6eaf | 1 | #include <time.h> |
| andrewboyson | 26:0421132e6eaf | 2 | #include <stdint.h> |
| andrewboyson | 26:0421132e6eaf | 3 | |
| andrewboyson | 26:0421132e6eaf | 4 | extern void TimeTmUtcToLocal(struct tm* ptm); |
| andrewboyson | 26:0421132e6eaf | 5 | |
| andrewboyson | 26:0421132e6eaf | 6 | extern void TimeAsciiDateTimeToTm(const char* pDate, const char* pTime, struct tm* ptm); |
| andrewboyson | 26:0421132e6eaf | 7 | extern void TimeToTmLocal(uint32_t time, struct tm* ptm); |
| andrewboyson | 26:0421132e6eaf | 8 | extern void TimeToTmUtc(uint32_t time, struct tm* ptm); |
| andrewboyson | 26:0421132e6eaf | 9 | |
| andrewboyson | 26:0421132e6eaf | 10 | extern time_t TimeFromTmUtc(struct tm* ptm); |
| andrewboyson | 26:0421132e6eaf | 11 | extern int TimePeriodBetween(struct tm* ptmLater, struct tm* ptmEarlier); |