• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revisión12be7c9184e5d05ed523cdb02ff7dadf6fb2cd9e (tree)
Tiempo2017-01-30 05:09:13
Autors.gusarov
Commiters.gusarov

Log Message

Added more time constants

Cambiar Resumen

Diferencia incremental

diff -r 8bc7b0e9d335 -r 12be7c9184e5 include/ctools/time_consts.h
--- a/include/ctools/time_consts.h Thu Jan 26 14:49:13 2017 +0300
+++ b/include/ctools/time_consts.h Sun Jan 29 23:09:13 2017 +0300
@@ -41,6 +41,8 @@
4141 enum {kSecsInMinute = 60};
4242 enum {kMinsInHour = 60};
4343 enum {kHoursInDay = 24};
44+enum {kMaxDaysInMonth = 31};
45+enum {kMonthsInYear = 12};
4446 /* *INDENT-ON* */
4547
4648 CT_END_NAMESPACE
diff -r 8bc7b0e9d335 -r 12be7c9184e5 tests/src/test_time_consts.c
--- a/tests/src/test_time_consts.c Thu Jan 26 14:49:13 2017 +0300
+++ b/tests/src/test_time_consts.c Sun Jan 29 23:09:13 2017 +0300
@@ -53,6 +53,12 @@
5353 a = kHoursInDay;
5454 CT_UNUSED(a);
5555
56+ a = kMaxDaysInMonth;
57+ CT_UNUSED(a);
58+
59+ a = kMonthsInYear;
60+ CT_UNUSED(a);
61+
5662
5763 b = CT_NANO_SECS_IN_MILLI_SEC;
5864 CT_UNUSED(b);
Show on old repository browser