time 1.0
Time validation library
Loading...
Searching...
No Matches
time.h File Reference

Time and date format structures for embedded applications. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FORMAT_Time_t
 Represents a time of day using hour, minute, and second fields. More...
struct  FORMAT_Date_t
 Represents a compact calendar date using day, month, and year fields. More...
struct  FORMAT_DateTime_t
 Combines date and time into a single timestamp structure. More...

Typedefs

typedef struct FORMAT_Time_t FORMAT_Time
 Alias for struct FORMAT_Time_t representing a formatted time of day.
typedef struct FORMAT_Date_t FORMAT_Date
 Alias for struct FORMAT_Date_t representing a formatted calendar date.
typedef struct FORMAT_DateTime_t FORMAT_DateTime
 Alias for struct FORMAT_DateTime_t representing a combined date-time value.

Detailed Description

Time and date format structures for embedded applications.

This header defines compact structures for representing time, date and combined date-time values in 8-bit fields suitable for embedded systems. The types are intended for storing and transferring formatted time data, independent of any specific RTC device.

Note
These structures improve code clarity by providing well-defined container types for time-related values, facilitating conversions between device-specific registers and application-level representations.
Author
g.raf
Date
2026-02-14
Version
1.0 Release
Note
This file is part of a larger project and subject to the license specified in the repository. For updates and the complete revision history, see the GitHub repository.
See also
https://github.com/0x007e/shared-format "Shared Format Data Types GitHub Repository"

Typedef Documentation

◆ FORMAT_Date

typedef struct FORMAT_Date_t FORMAT_Date

Alias for struct FORMAT_Date_t representing a formatted calendar date.

◆ FORMAT_DateTime

Alias for struct FORMAT_DateTime_t representing a combined date-time value.

◆ FORMAT_Time

typedef struct FORMAT_Time_t FORMAT_Time

Alias for struct FORMAT_Time_t representing a formatted time of day.