11#pragma once
2+ #ifndef _TIME_SHIELD_HPP_INCLUDED
3+ #define _TIME_SHIELD_HPP_INCLUDED
4+
25// / \file time_shield.hpp
36// / \brief Main header file for the Time Shield library.
47// /
58// / This header file includes all the components of the Time Shield library,
69// / making it easy to include the entire library in your projects with a single
710// / include directive.
8- // /
9- #ifndef _TIME_SHIELD_HPP_INCLUDED
10- #define _TIME_SHIELD_HPP_INCLUDED
1111
1212#include " time_shield/config.hpp" // /< Configuration settings for the Time Shield library.
1313#include " time_shield/types.hpp" // /< Type definitions used throughout the library.
@@ -38,25 +38,27 @@ namespace tshield = time_shield;
3838// / It includes various utilities for working with time and dates, their formatting, conversion, and validation.
3939namespace time_shield {};
4040
41- // / \defgroup time_structures Time Structures
42- // / \brief Structures for representing and working with time and date components.
43- // /
44- // / This group includes various structures used for representing time, date, and date-time combinations,
45- // / along with related utility functions for creating and manipulating these structures.
46- // /
47- // / ### Included Structures:
48- // / - `TimeStruct`: Represents time components (hour, minute, second, millisecond).
49- // / - `DateStruct`: Represents date components (year, month, day).
50- // / - `DateTimeStruct`: Represents combined date and time components.
51- // / - `TimeZoneStruct`: Represents time zone offsets.
52- // /
53- // / ### Example Usage:
54- // / ```cpp
55- // / auto time = time_shield::create_time_struct(12, 30, 45); // 12:30:45
56- // / auto date = time_shield::create_date_struct(2024, 11, 25); // 2024-11-25
57- // / auto date_time = time_shield::create_date_time_struct(2024, 11, 25, 12, 30, 45);
58- // / auto tz = time_shield::to_time_zone_struct(3600); // +01:00
59- // / ```
41+ /* !
42+ \defgroup time_structures Time Structures
43+ \brief Structures for representing and working with time and date components.
44+
45+ This group includes various structures used for representing time, date, and date-time combinations,
46+ along with related utility functions for creating and manipulating these structures.
47+
48+ ### Included Structures:
49+ - `TimeStruct`: Represents time components (hour, minute, second, millisecond).
50+ - `DateStruct`: Represents date components (year, month, day).
51+ - `DateTimeStruct`: Represents combined date and time components.
52+ - `TimeZoneStruct`: Represents time zone offsets.
53+
54+ ### Example Usage:
55+ ```cpp
56+ auto time = time_shield::create_time_struct(12, 30, 45); // 12:30:45
57+ auto date = time_shield::create_date_struct(2024, 11, 25); // 2024-11-25
58+ auto date_time = time_shield::create_date_time_struct(2024, 11, 25, 12, 30, 45);
59+ auto tz = time_shield::to_time_zone_struct(3600); // +01:00
60+ ```
61+ */
6062
6163/* !
6264\mainpage Time Shield Library
@@ -77,7 +79,7 @@ The Time Shield Library is a comprehensive C++ library designed for time manipul
7779
7880\code{.cpp}
7981#include <iostream>
80- #include " time_shield.hpp"
82+ #include < time_shield.hpp>
8183
8284int main() {
8385 // Get the current timestamp
0 commit comments