ConOpSys V2970
P004.07
ANVILEX control operating system
|
System date and time class. More...
#include <System_Date.h>
Classes | |
struct | TDate_Time_Structure |
Date and time structure. More... | |
Public Member Functions | |
TDate_Time () | |
Class constructor method. More... | |
TDate_Time (const TDate_Time &object_Source) | |
Constructor method. More... | |
TDate_Time (TDate_Time *object_Source) | |
Constructor method. More... | |
TDate_Time (TDate_Time_Structure *struct_Source) | |
Constructor method. More... | |
TDate_Time (U16 u16_Year, U16 u16_Month, U16 u16_Day) | |
Constructor method. More... | |
TDate_Time (U16 u16_Hour, U16 u16_Minute, U16 u16_Second, U16 u16_Milisecond) | |
Constructor method. More... | |
TDate_Time (U16 u16_Year, U16 u16_Month, U16 u16_Day, U16 u16_Hour, U16 u16_Minute, U16 u16_Second, U16 u16_Milisecond) | |
Constructor method. More... | |
TDate_Time (U64 u64_Source) | |
Constructor method. More... | |
~TDate_Time () | |
Destructor method. More... | |
VOID | Set_Default () |
VOID | Get (TDate_Time_Structure *struct_DateTime) |
BOOL | Set (TDate_Time_Structure struct_New_DateTime) |
BOOL | Set (TDate_Time_Structure *struct_New_DateTime) |
BOOL | Set (U16 u16_Year, U16 u16_Month, U16 u16_Day, U16 u16_Hour, U16 u16_Minute, U16 u16_Second, U16 u16_Milisecond) |
U64 | Get_Compressed_As_U64 () |
TDate_Time_Structure | Convert_From_CDT64 (U64 u64_Value) |
U64 | Get_As_CDT64 () |
TDate_Time_Structure * | Get_Data () |
BOOL | Is_Valid (TDate_Time_Structure struct_DateTime_Structure) |
VOID | Increment_ms () |
U16 | Last_Day_Of_Month_Common_Year (U16 u16_Month) |
U16 | Last_Day_Of_Month_Leap_Year (U16 u16_Month) |
Private Attributes | |
TDate_Time_Structure | struct_DateTime_Structure |
Date and time drorage structure. More... | |
BOOL | bool_Valid |
Date and time validity flag. More... | |
System date and time class.
TDate_Time::TDate_Time | ( | ) |
Class constructor method.
References bool_Valid, and Set_Default().
TDate_Time::TDate_Time | ( | const TDate_Time & | object_Source | ) |
Constructor method.
References bool_Valid, struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
TDate_Time::TDate_Time | ( | TDate_Time * | object_Source | ) |
Constructor method.
References bool_Valid, NULL, Set_Default(), struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
TDate_Time::TDate_Time | ( | TDate_Time_Structure * | struct_Source | ) |
Constructor method.
References bool_Valid, NULL, Set_Default(), struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
Constructor method.
References bool_Valid, struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
Constructor method.
References bool_Valid, struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
TDate_Time::TDate_Time | ( | U16 | u16_Year, |
U16 | u16_Month, | ||
U16 | u16_Day, | ||
U16 | u16_Hour, | ||
U16 | u16_Minute, | ||
U16 | u16_Second, | ||
U16 | u16_Milisecond | ||
) |
Constructor method.
References bool_Valid, struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
TDate_Time::TDate_Time | ( | U64 | u64_Source | ) |
Constructor method.
References bool_Valid, struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
TDate_Time::~TDate_Time | ( | ) |
Destructor method.
TDate_Time::TDate_Time_Structure TDate_Time::Convert_From_CDT64 | ( | U64 | u64_Value | ) |
References TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
VOID TDate_Time::Get | ( | TDate_Time_Structure * | struct_DateTime | ) |
References NULL, struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
Referenced by TRTC_STM32F429::Get_Software_RTC().
U64 TDate_Time::Get_As_CDT64 | ( | ) |
References struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
Referenced by TRTC_STM32F429::Get_Actual_System_Runtime_Duration_in_ms(), and TRTC_STM32F429::Get_Last_System_Shootdown_Duration_in_ms().
U64 TDate_Time::Get_Compressed_As_U64 | ( | ) |
References struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
Referenced by TParameter_EVENT_DATABASE_EVENT_ABSOLUTE_TIMESTAMP::Pre_Read_Data_Processing(), TRTC_STM32F429::Take_Runtime_Snapshoot(), and TRTC_STM32F429::Take_Startup_Snapshoot().
TDate_Time::TDate_Time_Structure * TDate_Time::Get_Data | ( | ) |
References struct_DateTime_Structure.
Referenced by TRTC_STM32F429::Get_Hardware_RTC().
VOID TDate_Time::Increment_ms | ( | ) |
References struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
Referenced by TRTC_STM32F429::Execute_1ms().
BOOL TDate_Time::Is_Valid | ( | TDate_Time_Structure | struct_DateTime_Structure | ) |
BOOL TDate_Time::Set | ( | TDate_Time_Structure * | struct_New_DateTime | ) |
References bool_Valid, Is_Valid(), NULL, Set_Default(), struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
BOOL TDate_Time::Set | ( | TDate_Time::TDate_Time_Structure | struct_New_DateTime | ) |
References bool_Valid, Is_Valid(), Set_Default(), struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
Referenced by Set(), TRTC_STM32F429::Set_Software_RTC(), and TRTC_STM32F429::Sync_Virtual_RTC().
BOOL TDate_Time::Set | ( | U16 | u16_Year, |
U16 | u16_Month, | ||
U16 | u16_Day, | ||
U16 | u16_Hour, | ||
U16 | u16_Minute, | ||
U16 | u16_Second, | ||
U16 | u16_Milisecond | ||
) |
References bool_Valid, Set(), struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
VOID TDate_Time::Set_Default | ( | ) |
References bool_Valid, struct_DateTime_Structure, TDate_Time::TDate_Time_Structure::u16_Day, TDate_Time::TDate_Time_Structure::u16_Flags, TDate_Time::TDate_Time_Structure::u16_Hour, TDate_Time::TDate_Time_Structure::u16_Milisecond, TDate_Time::TDate_Time_Structure::u16_Minute, TDate_Time::TDate_Time_Structure::u16_Month, TDate_Time::TDate_Time_Structure::u16_Second, and TDate_Time::TDate_Time_Structure::u16_Year.
Referenced by Set(), and TDate_Time().
|
private |
Date and time validity flag.
Referenced by Set(), Set_Default(), and TDate_Time().
|
private |
Date and time drorage structure.
Referenced by Get(), Get_As_CDT64(), Get_Compressed_As_U64(), Get_Data(), Increment_ms(), Set(), Set_Default(), and TDate_Time().