--- parser3/src/classes/date.C 2002/04/25 14:35:20 1.28 +++ parser3/src/classes/date.C 2002/05/15 08:58:00 1.30 @@ -4,7 +4,7 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: date.C,v 1.28 2002/04/25 14:35:20 paf Exp $ + $Id: date.C,v 1.30 2002/05/15 08:58:00 paf Exp $ */ #include "classes.h" @@ -61,10 +61,6 @@ static void _create(Request& r, const St const char *hour=lsplit(&cstr, ':'); const char *min=lsplit(&cstr, ':'); const char *sec=cstr; - if(!year) - throw Exception(0, - sdate, - "no part of date specified, must be in YYYY-NN-DD HH-MM-SS format"); tm tmIn={0}; tmIn.tm_isdst=-1; tmIn.tm_year=NN_year_to_NNNN(atoi(year)); @@ -306,7 +302,7 @@ MDate::MDate(Pool& apool) : Methoded(apo // ^now[] add_native_method("now", Method::CT_DYNAMIC, _now, 0, 1); - // ^set(float days) + // ^create(float days) add_native_method("create", Method::CT_DYNAMIC, _create, 1, 6); // old name for compatibility with <= v1.17 2002/2/18 12:13:42 paf add_native_method("set", Method::CT_DYNAMIC, _create, 1, 6);