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
12 local os_date = os.date;
18 return os_date("!%Y-%m-%d", t);
22 return os_date("!%Y-%m-%dT%H:%M:%SZ", t);
26 return os_date("!%H:%M:%S", t);
30 return os_date("!%Y%m%dT%H:%M:%S", t);
34 error("datetime.parse: Not implemented"); -- TODO