The Chronology Library provides classes that help using date and time as well as interacting
with the user.
There are currently three classes in the Chronology Library (although there will be more in future releases):
- The CTime class. This helps with calculating with time. It handles "time of day" as well
as "periods of time" or "amount of time". You can add/sub, multiply/divide the time, convert it
to a string in the format you like. It further supports having "days", thus being able to
calculate with more than 24 hours.
- The CDate class. This one's for calculating with dates. It handles dates back to 01/01/1600
and makes sure the date is always valid. Converting to strings is possible: you can again define the
format in many ways. you can add days and months to dates, subtract two dates to get the days between
calculate Easter and yes! It is Y2K safe. (Anybody aleady thought of the year 65536 problem?)
- The CClockControl class. This class provides you with a derivate of BControl, that looks like
the clock in "preferences/Time", but is yet more powerfull: it supports drag and drop and will
be customizeable in future.
The Cronology Library, in lovely HTML, for BeOS Release 4.
Copyright © 1999 Michael Praschl. All rights reserved.
Last modified: 15. Feb 1999