src/calcurse.h: Rework date manipulation constants
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
162c6aebdd
commit
d874f7ff97
@ -123,14 +123,22 @@
|
|||||||
#define SBARMAXWIDTHPERC 50
|
#define SBARMAXWIDTHPERC 50
|
||||||
|
|
||||||
/* Related to date manipulation. */
|
/* Related to date manipulation. */
|
||||||
#define DAYINSEC 86400
|
|
||||||
#define HOURINSEC 3600
|
|
||||||
#define MININSEC 60
|
|
||||||
#define YEARINDAYS 365
|
|
||||||
#define YEARINMONTHS 12
|
#define YEARINMONTHS 12
|
||||||
#define WEEKINDAYS 7
|
#define YEARINDAYS 365
|
||||||
#define TM_YEAR_BASE 1900
|
#define TM_YEAR_BASE 1900
|
||||||
|
|
||||||
|
#define WEEKINDAYS 7
|
||||||
|
#define DAYINHOURS 24
|
||||||
|
#define HOURINMIN 60
|
||||||
|
#define MININSEC 60
|
||||||
|
|
||||||
|
#define WEEKINHOURS (WEEKINDAYS * DAYINHOURS)
|
||||||
|
#define WEEKINMIN (WEEKINHOURS * HOURINMIN)
|
||||||
|
#define WEEKINSEC (WEEKINMIN * MININSEC)
|
||||||
|
#define DAYINMIN (DAYINHOURS * HOURINMIN)
|
||||||
|
#define DAYINSEC (DAYINMIN * MININSEC)
|
||||||
|
#define HOURINSEC (HOURINMIN * MININSEC)
|
||||||
|
|
||||||
/* Calendar window. */
|
/* Calendar window. */
|
||||||
#define CALHEIGHT 12
|
#define CALHEIGHT 12
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user