ConOpSys V2970  P004.07
ANVILEX control operating system
Classes | Public Member Functions | Private Attributes | List of all members
TDate_Time Class Reference

System date and time class. More...

#include <System_Date.h>

Collaboration diagram for TDate_Time:
Collaboration graph

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_StructureGet_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...
 

Detailed Description

System date and time class.

Constructor & Destructor Documentation

◆ TDate_Time() [1/8]

TDate_Time::TDate_Time ( )

Class constructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.
UML diagram
dot_TDate_Time__TDate_Time.png

References bool_Valid, and Set_Default().

Here is the call graph for this function:

◆ TDate_Time() [2/8]

TDate_Time::TDate_Time ( const TDate_Time object_Source)

◆ TDate_Time() [3/8]

TDate_Time::TDate_Time ( TDate_Time object_Source)

◆ TDate_Time() [4/8]

TDate_Time::TDate_Time ( TDate_Time_Structure struct_Source)

◆ TDate_Time() [5/8]

TDate_Time::TDate_Time ( U16  u16_Year,
U16  u16_Month,
U16  u16_Day 
)

◆ TDate_Time() [6/8]

TDate_Time::TDate_Time ( U16  u16_Hour,
U16  u16_Minute,
U16  u16_Second,
U16  u16_Milisecond 
)

◆ TDate_Time() [7/8]

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 
)

◆ TDate_Time() [8/8]

TDate_Time::TDate_Time ( U64  u64_Source)

◆ ~TDate_Time()

TDate_Time::~TDate_Time ( )

Destructor method.

Member Function Documentation

◆ Convert_From_CDT64()

TDate_Time::TDate_Time_Structure TDate_Time::Convert_From_CDT64 ( U64  u64_Value)

◆ Get()

VOID TDate_Time::Get ( TDate_Time_Structure struct_DateTime)

◆ Get_As_CDT64()

U64 TDate_Time::Get_As_CDT64 ( )

◆ Get_Compressed_As_U64()

U64 TDate_Time::Get_Compressed_As_U64 ( )

◆ Get_Data()

TDate_Time::TDate_Time_Structure * TDate_Time::Get_Data ( )

References struct_DateTime_Structure.

Referenced by TRTC_STM32F429::Get_Hardware_RTC().

Here is the caller graph for this function:

◆ Increment_ms()

VOID TDate_Time::Increment_ms ( )

◆ Is_Valid()

BOOL TDate_Time::Is_Valid ( TDate_Time_Structure  struct_DateTime_Structure)

Referenced by Set().

Here is the caller graph for this function:

◆ Last_Day_Of_Month_Common_Year()

U16 TDate_Time::Last_Day_Of_Month_Common_Year ( U16  u16_Month)

◆ Last_Day_Of_Month_Leap_Year()

U16 TDate_Time::Last_Day_Of_Month_Leap_Year ( U16  u16_Month)

◆ Set() [1/3]

BOOL TDate_Time::Set ( TDate_Time_Structure struct_New_DateTime)

◆ Set() [2/3]

BOOL TDate_Time::Set ( TDate_Time::TDate_Time_Structure  struct_New_DateTime)

◆ Set() [3/3]

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 
)

◆ Set_Default()

VOID TDate_Time::Set_Default ( )

Member Data Documentation

◆ bool_Valid

BOOL TDate_Time::bool_Valid
private

Date and time validity flag.

Referenced by Set(), Set_Default(), and TDate_Time().

◆ struct_DateTime_Structure

TDate_Time_Structure TDate_Time::struct_DateTime_Structure
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().


The documentation for this class was generated from the following files: