Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECSS Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AcubeSat-OBC
ECSS Services
Commits
be529bf5
Commit
be529bf5
authored
6 years ago
by
Theodoros Katzalis
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes in the documentation
parent
fdffcc1d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/Helpers/TimeAndDate.hpp
+6
-9
6 additions, 9 deletions
inc/Helpers/TimeAndDate.hpp
src/Helpers/TimeAndDate.cpp
+1
-1
1 addition, 1 deletion
src/Helpers/TimeAndDate.cpp
with
7 additions
and
10 deletions
inc/Helpers/TimeAndDate.hpp
+
6
−
9
View file @
be529bf5
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* A class that represents the time and date.
* A class that represents the time and date.
*
*
* @note
* @note
* This class represents UTC date
* This class represents UTC
(Coordinated Universal Time)
date
*/
*/
class
TimeAndDate
{
class
TimeAndDate
{
public:
public:
...
@@ -22,16 +22,13 @@ public:
...
@@ -22,16 +22,13 @@ public:
/**
/**
* Assign the instances with the Unix epoch 1/1/1970 00:00:00
* Assign the instances with the Unix epoch 1/1/1970 00:00:00
*/
*/
TimeAndDate
();
//
TimeAndDate
();
/**
/**
* @param year the year as it used in Gregorian calendar (the well known civil calendar). For
* @param year the year as it used in Gregorian calendar
* example 2019
* @param month the month as it used in Gregorian calendar
* @param month the month as it used in Gregorian calendar. There isn't 0 month so we are
* @param day the day as it used in Gregorian calendar
* start counting from 1!
* @param hour UTC hour in 24 format
* @param day the day as it used in Gregorian calendar. There isn't 0 day so we are start
* counting from 1!
* @param hour UTC (Coordinated Universal Time) hour in 24 format
* @param minute UTC minutes
* @param minute UTC minutes
* @param second UTC seconds
* @param second UTC seconds
*/
*/
...
...
This diff is collapsed.
Click to expand it.
src/Helpers/TimeAndDate.cpp
+
1
−
1
View file @
be529bf5
...
@@ -13,7 +13,7 @@ TimeAndDate::TimeAndDate() {
...
@@ -13,7 +13,7 @@ TimeAndDate::TimeAndDate() {
TimeAndDate
::
TimeAndDate
(
uint16_t
year
,
uint8_t
month
,
uint8_t
day
,
uint8_t
hour
,
uint8_t
minute
,
TimeAndDate
::
TimeAndDate
(
uint16_t
year
,
uint8_t
month
,
uint8_t
day
,
uint8_t
hour
,
uint8_t
minute
,
uint8_t
second
)
{
uint8_t
second
)
{
// check if the parameters make
s
sense
// check if the parameters make sense
assertI
(
2019
<=
year
,
ErrorHandler
::
InternalErrorType
::
InvalidDate
);
assertI
(
2019
<=
year
,
ErrorHandler
::
InternalErrorType
::
InvalidDate
);
assertI
(
1
<=
month
&&
month
<=
12
,
ErrorHandler
::
InternalErrorType
::
InvalidDate
);
assertI
(
1
<=
month
&&
month
<=
12
,
ErrorHandler
::
InternalErrorType
::
InvalidDate
);
assertI
(
1
<=
day
&&
day
<=
31
,
ErrorHandler
::
InternalErrorType
::
InvalidDate
);
assertI
(
1
<=
day
&&
day
<=
31
,
ErrorHandler
::
InternalErrorType
::
InvalidDate
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment