EtcPal  0.4.1
ETC Platform Abstraction Layer (EtcPal)
View other versions:
EtcPalLogTimestamp Struct Reference

Overview

A set of parameters which represent the current local time with millisecond resolution.

The valid ranges for each member can be validated using etcpal_validate_log_timestamp().

Data Fields

unsigned int year
 Absolute year. More...
 
unsigned int month
 Month of the year. More...
 
unsigned int day
 Day of the month. More...
 
unsigned int hour
 Hours since midnight. More...
 
unsigned int minute
 Minutes past the current hour. More...
 
unsigned int second
 Seconds past the current minute. More...
 
unsigned int msec
 Milliseconds past the current second. More...
 
int utc_offset
 The local offset from UTC in minutes.
 

Field Documentation

◆ day

unsigned int day

Day of the month.

Valid range 1-31.

◆ hour

unsigned int hour

Hours since midnight.

Valid range 0-23.

◆ minute

unsigned int minute

Minutes past the current hour.

Valid range 0-59.

◆ month

unsigned int month

Month of the year.

Valid range 1-12 (starting with 1 for January).

◆ msec

unsigned int msec

Milliseconds past the current second.

Valid range 0-999.

◆ second

unsigned int second

Seconds past the current minute.

Valid range 0-60 (to handle leap seconds).

◆ year

unsigned int year

Absolute year.

Valid range 0-9999.


The documentation for this struct was generated from the following file: