Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 11 and Version 12 of StdLib2/TimeLib

Show
Ignore:
Author:
JarrettBillingsley (IP: 67.171.66.50)
Timestamp:
11/13/09 02:36:47 (14 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StdLib2/TimeLib

    v11 v12  
    4040If you pass nothing for the `output` parameter, the date and time are placed into a new table and returned.  If you pass something for the `output` parameter, it must be a table.  It will have its '`year`', '`month`', '`day`', '`hour`', '`min`', and '`sec`' fields set to the current time, using opIndexAssign metamethods if necessary.  The return value will then become the table that you passed in.  The option to pass in a table to take the output is to make it faster if you need to keep getting the time over and over, instead of requiring a memory allocation each time. 
    4141 
     42== '''`time.compare(t1: table, t2: table):int`''' == 
     43 
     44Compares two time tables and returns a three-way comparison value: less than 0 if t1 comes before t2, greater than 0 if t1 comes after t2, or 0 if t1 and t2 are the same time. 
     45 
    4246== '''`time.culture([new: string])`''' == 
    4347