bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date.cpp patch


From: Marcelo Dalmas
Subject: date.cpp patch
Date: Tue, 21 Jan 2003 17:20:18 -0200

Hi,

I changed Date::setDate() Time::setTime() Datetime::setDatetime() to
recognize strings like:

Date: "mm/dd", "yy/mm/dd" and "yyyy/mm/dd", e.g. date("2003/01/21") or
date("01-21");
Time: "hh:mm" and "hh:mm:ss", e.g. time("14:00");
Datetime: "mm/dd hh:mm", "yy/mm/dd hh:mm", "yy/mm/dd hh:mm:ss" and
"yyyy/mm/dd hh:mm:ss" Datetime("01/21 16:00").

and throw exceptions, objects or nothing for invalid strings.

Regards,
-- 
Marcelo Dalmas
BRASMAP Sistemas
www.brasmap.com.br
Fone/Fax: (48) 333-2218 ramal 2114

Linux user #114373 http://counter.li.org/

Attachment: date.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]