Alexey Sokolov
fd8a36d3ea
Use value-parameterized tests for FormatTime
2017-11-04 21:37:55 +00:00
Vladimir Panteleev
901a21e91b
Utils: Add FormatTime overload taking timeval
...
This overload also supports additional format sequences for formatting
the sub-second part of timeval.
2017-10-26 00:00:50 +00:00
Phansa
3189ce7f8a
Welcome to 2017
...
Welcome to 2017
temp
temp2
2017-03-12 20:34:26 -04:00
Tor Arne Vestbø
02bfb9eaf5
Centralize logic to get current server time
...
A few different implementations of computing the current time were
spread out through the code base, most of them using gettimeofday().
This centralizes the logic in CUtil::GetTime() for easier maintenance,
and also allows all call sites to get the benefit of the clock_gettime()
code path on systems that support it.
2016-07-06 01:16:15 +02:00
Tor Arne Vestbø
852c9832a0
Fix inverted gettimeofday() return value handling
...
The gettimeofday function returns 0 for success, not for failure. As a
result of the inverted logic we were losing millisecond precision when
parsing incoming messages on non-HAVE_CLOCK_GETTIME systems (macOS).
2016-07-05 18:39:53 +02:00
Falk Seidel
8f73840e74
Welcome to 2016
...
🎆 Happy 2016 🎆
2016-01-01 20:11:21 +01:00
Alexey Sokolov
d185d6f22d
clang-format: switch tabs to spaces
...
I like tabs, but I have to admit that spaces make source code more
consistent, because every editor/viewer tends to render tabs differently :(
2015-12-07 00:53:30 +00:00
Alexey Sokolov
33b0627d75
Add clang-format configuration.
...
For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
2015-12-07 00:53:01 +00:00
J-P Nurmi
683379df7d
CUtils::ParseServerTime(): fix handling of invalid timestamps
2015-09-18 01:16:01 +02:00
J-P Nurmi
51caa5c4cf
Add CUtils::ParseServerTime()
2015-08-15 12:26:16 +02:00
J-P Nurmi
1aba508298
Add initializer_list ctors for CString & MCString
2015-07-13 19:04:14 +02:00
Falk Seidel
2e29d49a53
Welcome to 2015
2014-12-31 11:28:38 +01:00
J-P Nurmi
92c9a2e6ae
Escape message tag values (ref #684 )
2014-09-30 00:02:22 +02:00
J-P Nurmi
615801c40e
Fix valueless message tags ( closes #684 )
2014-09-29 14:06:41 +02:00
Alexey Sokolov
5237e89bc3
Fix message tags parser and add test of it
2014-03-03 22:35:56 +00:00