Topic: DateTime
Author: Marcelo Cantos <marcelo@mds.rmit.edu.au>
Date: 1997/01/28 Raw View
James Kanze wrote:
>
> d96-mst@nada.kth.se (Mikael Steldal) writes:
>
> |> In article <rf520bg8ta2.fsf@vx.cit.alcatel.fr>,
> |> James Kanze <james-albert.kanze@vx.cit.alcatel.fr> wrote:
> |>
> |> >If you mean a standard date_and_time class, however, no.
> |>
> |> That would have been useful. But it's perhaps possible to write a fully
> |> portable date_and_time calss using <ctime>?
>
> Probably, depending what you want in it. IMHO, the real problem in
> writing a standard, or even a general, date_and_time class is in
> deciding exactly what it should/should not do.
Exactly. There are so many issues involved in the design of date/time
classes that it would nearly impossible to specify one that met
everyone's needs. Issues include: Julian/Gregorian time, time-zones,
variation of daylight savings rules due to local politics, expressing
unusual times (eg. "last day of the month"), not to mention the many
other calendar systems around the world.
I simple approach might be to just wrap the existing C stuff into
classes. I don't see that we would gain much from this.
Regards,
Marcelo Cantos
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Author: James Kanze <james-albert.kanze@vx.cit.alcatel.fr>
Date: 1997/01/24 Raw View
d96-mst@nada.kth.se (Mikael Steldal) writes:
|> In article <rf520bg8ta2.fsf@vx.cit.alcatel.fr>,
|> James Kanze <james-albert.kanze@vx.cit.alcatel.fr> wrote:
|>
|> >If you mean a standard date_and_time class, however, no.
|>
|> That would have been useful. But it's perhaps possible to write a fully
|> portable date_and_time calss using <ctime>?
Probably, depending what you want in it. IMHO, the real problem in
writing a standard, or even a general, date_and_time class is in
deciding exactly what it should/should not do.
--
James Kanze home: kanze@gabi-soft.fr +33 (0)1 39 55 85 62
office: kanze@vx.cit.alcatel.fr +33 (0)1 69 63 14 54
GABI Software, Sarl., 22 rue Jacques-Lemercier, F-78000 Versailles France
-- Conseils en informatique industrielle --
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Author: d96-mst@nada.kth.se (Mikael St ldal)
Date: 1997/01/22 Raw View
In article <rf520bg8ta2.fsf@vx.cit.alcatel.fr>,
James Kanze <james-albert.kanze@vx.cit.alcatel.fr> wrote:
>If you mean a standard date_and_time class, however, no.
That would have been useful. But it's perhaps possible to write a fully
portable date_and_time calss using <ctime>?
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Author: James Kanze <james-albert.kanze@vx.cit.alcatel.fr>
Date: 1997/01/20 Raw View
d96-mst@nada.kth.se (Mikael Steldal) writes:
|> Will the C++ standard include a class for date&time handling?
It depends on what you mean by "date and time handling." It will
certainly include all of the functions defined in the C header
<time.h>. In addition, there are four conversion functions in
<locale>.
If you mean a standard date_and_time class, however, no.
--
James Kanze home: kanze@gabi-soft.fr +33 (0)1 39 55 85 62
office: kanze@vx.cit.alcatel.fr +33 (0)1 69 63 14 54
GABI Software, Sarl., 22 rue Jacques-Lemercier, F-78000 Versailles France
-- Conseils en informatique industrielle --
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Author: d96-mst@nada.kth.se (Mikael Steldal)
Date: 1997/01/15 Raw View
Will the C++ standard include a class for date&time handling?
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]