MCPcopy Create free account
hub / github.com/Icinga/icinga2 / DateTimeFormat

Function DateTimeFormat

lib/base/datetime-script.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace icinga;
11
12static String DateTimeFormat(const String& format)
13{
14 ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
15 DateTime::Ptr self = static_cast<DateTime::Ptr>(vframe->Self);
16 REQUIRE_NOT_NULL(self);
17
18 return self->Format(format);
19}
20
21Object::Ptr DateTime::GetPrototype()
22{

Callers

nothing calls this directly

Calls 1

FormatMethod · 0.45

Tested by

no test coverage detected