MCPcopy Create free account
hub / github.com/MITK/MITK / GetCurrentISO8601DateTime

Function GetCurrentISO8601DateTime

Modules/Forms/src/mitkForm.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace
28{
29 std::string GetCurrentISO8601DateTime()
30 {
31 std::timespec ts;
32 std::timespec_get(&ts, TIME_UTC);
33 std::array<char, 21> buffer{}; // YYYY-MM-DDThh:mm:ssZ
34
35 std::strftime(buffer.data(), buffer.size(), "%FT%TZ", std::gmtime(&ts.tv_sec));
36
37 return buffer.data();
38 }
39}
40
41Form::Section::Section(const std::string& title, const std::string& description)

Callers 1

SubmitToCSVMethod · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected