add some constants to the Date class

This commit is contained in:
Tomasz Sowa 2023-07-04 22:57:50 +02:00
parent 987d9c845c
commit cbaf57bec3
Signed by: tomasz.sowa
GPG Key ID: 662CC1438638588B
1 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2012-2022, Tomasz Sowa
* Copyright (c) 2012-2023, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -60,6 +60,11 @@ class Date
{
public:
static const time_t ONE_MIN = 60; /* one minute in seconds */
static const time_t ONE_HOUR = ONE_MIN * 60; /* one hour in seconds */
static const time_t ONE_DAY = ONE_HOUR * 24; /* one day in seconds */
static const time_t ONE_WEEK = ONE_DAY * 7; /* one week in seconds */
/*
the date