bug-commoncpp
[Top][All Lists]
Advanced

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

Re: DateTime() constructor


From: Marcelo Dalmas
Subject: Re: DateTime() constructor
Date: Wed, 29 Jan 2003 15:14:22 -0200

The patch for fromSeconds method should't be apply because methods like
getHour,
getMinute, etc., use fromSeconds.

What do you think about add inserter, extractor and maipulators to Date,
Time and Datetime? Something like:

cout << width(5) << time << endl;  // 14:00
cout << width(8) << time << endl;  // 14:00:00
cout << pm << time << endl; // 2:00pm




On Wed, 29 Jan 2003 14:51:36 +0100
Federico Montesino Pouzols <address@hidden> wrote:

> 
>       Ok, it is in CVS. Marcelo, this patch seems to include your
> previous one for Time, however I see a little difference as for the
> fromSeconds method. Should we apply to CVS the changes to fromSeconds
> that you included in the first patch?
> 
> On Wed, Jan 29, 2003 at 09:40:29AM -0200, Marcelo Dalmas wrote:
> > Hi,
> > 
> > attached, a new constructor for Datetime.
> > 
> > On Tue, 28 Jan 2003 10:27:12 -0500
> > "Mike Suchoff" <address@hidden> wrote:
> > 
> > > In default constructor of DateTime
> > >   DateTime::DateTime() : Date(), Time() {}
> > > 
> > > The separate calls to Date() and Time() will each make a different
> > > call to operating system for current time.
> > > If call to Date() returns 12/31/2002 23:59:59 and call to Time()
> > > returns 1/1/2003 0:0:0 then you end up with value that is off by 24
> > > hours(12/31/2002 0:0:0).
> > > 
> > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Bug-commoncpp mailing list
> > > address@hidden
> > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> > > 
> > 
> > 
> > -- 
> > Marcelo Dalmas
> > BRASMAP Sistemas
> > www.brasmap.com.br
> > Fone/Fax: (48) 333-2218 ramal 2114
> > 
> > Linux user #114373 http://counter.li.org/
> > 
> 
> 
> > _______________________________________________
> > Bug-commoncpp mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> 
> 


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

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





reply via email to

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