Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 19 and Version 20 of ChapterDateTime

Show
Ignore:
Author:
Nodlehs (IP: 206.75.5.27)
Timestamp:
02/06/08 17:18:01 (7 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChapterDateTime

    v19 v20  
    3535The basic representation of a point in time within Tango is in tango.time.Time.  This structure allows representations of points of time ranging from 10,000 BC to 10,000 AD.  The discrete unit of time in Time is also 100 nano-seconds.  Time uses !TimeSpan to return differences between two Time values, and to add or subtract a length of time from a Time.  It also is used by the Clock classes and Calendar classes to provide localized points of time. 
    3636 
    37 The !TimeOfDay structure in tango.time.!TimeSpan is used to represent the time of a given day without the date.  For example, 12:42:05.  This structure is somewhat like !TimeSpan except it's properties return the components of a time instead of the total time converted to that measurement.  For example, !TimeOfDay.seconds will will always return a value in the range of 0 - 59.  The !TimeOfDay can be accessed from a given Time by using the ''time'' property.  For example: 
     37The !TimeOfDay structure in tango.time.!TimeSpan is used to represent the time of a given day without the date.  For example, 12:42:05.  This structure is somewhat like !TimeSpan except it's properties return the components of a time instead of the total time converted to that measurement.  For example, !TimeOfDay.seconds will always return a value in the range of 0 - 59.  The !TimeOfDay can be accessed from a given Time by using the ''time'' property.  For example: 
    3838 
    3939{{{