MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / Parse

Function Parse

UnitTests/sources/DateTest.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool Parse(const char * stDate, Int32 year, UInt8 month, UInt8 day,UInt8 weekDay, UInt8 hour, UInt8 minute, UInt8 second, UInt16 millisecond,Int32 offset,const char* format=NULL) {
55 bool bIsParseOk = _Date.update(Ex,stDate,format);
56 if (!bIsParseOk) {
57 DEBUG("Error during parsing of ", stDate, ", ",Ex.error());
58 return false;
59 }
60 return Check(year, month, day, weekDay, hour, minute, second, millisecond, offset);
61}
62
63
64bool Update(Int32 year, UInt8 month, UInt8 day, UInt8 hour, UInt8 minute, UInt8 second, UInt16 millisecond, Int32 offset,UInt8 weekDay) {

Callers 2

ADD_TESTFunction · 0.85
setMethod · 0.85

Calls 3

CheckFunction · 0.85
errorMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected