summaryrefslogtreecommitdiff
path: root/zen/time.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:04:33 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:04:33 +0200
commit017e56b81ba735c39c43701f737ac7dde55da7b4 (patch)
treeea7aaaee13a06a702701e2f74f5d390e10ae303e /zen/time.h
parent9.4 (diff)
downloadFreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.gz
FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.bz2
FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.zip
9.5
Diffstat (limited to 'zen/time.h')
-rwxr-xr-xzen/time.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/time.h b/zen/time.h
index 3323a318..2ac67399 100755
--- a/zen/time.h
+++ b/zen/time.h
@@ -191,11 +191,11 @@ bool isValid(const std::tm& t)
auto inRange = [](int value, int minVal, int maxVal) { return minVal <= value && value <= maxVal; };
//http://www.cplusplus.com/reference/clibrary/ctime/tm/
- return inRange(t.tm_sec , 0, 61) &&
- inRange(t.tm_min , 0, 59) &&
+ return inRange(t.tm_sec, 0, 61) &&
+ inRange(t.tm_min, 0, 59) &&
inRange(t.tm_hour, 0, 23) &&
inRange(t.tm_mday, 1, 31) &&
- inRange(t.tm_mon , 0, 11) &&
+ inRange(t.tm_mon, 0, 11) &&
//tm_year
inRange(t.tm_wday, 0, 6) &&
inRange(t.tm_yday, 0, 365);
bgstack15