2 -- Copyright (C) 2008-2009 Matthew Wild
3 -- Copyright (C) 2008-2009 Waqas Hussain
5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information.
10 -- XEP-0082: XMPP Date and Time Profiles
\r
12 local os_date = os.date;
\r
13 local error = error;
\r
18 return os_date("!%Y-%m-%d");
\r
22 return os_date("!%Y-%m-%dT%H:%M:%SZ");
\r
26 return os_date("!%H:%M:%S");
\r
30 return os_date("!%Y%m%dT%H:%M:%S");
\r
34 error("datetime.parse: Not implemented"); -- TODO
\r