| 10 | using namespace icinga; |
| 11 | |
| 12 | static 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 | |
| 21 | Object::Ptr DateTime::GetPrototype() |
| 22 | { |