home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Core / Classes / Time.uc < prev   
Text File  |  2003-08-27  |  3KB  |  80 lines

  1. //=============================================================================
  2. /// Time-management class.
  3. /// Not yet implemented.
  4. /// This is a built-in Unreal class and it shouldn't be modified.
  5. ///
  6. /// Coordinated Universal Time or UCT is the world standard time 
  7. /// representation which is independent of time zone and daylight
  8. /// savings time.  The UCT standard supercedes the obsolete Grenwich
  9. /// Mean Time (GMT).
  10. ///
  11. /// UCT is technically the time on the zeroth meridian plus 12 hours.
  12. /// For example, to convert UCT to EST (Eastern Standard Time), subtract 
  13. /// 5 hours from UCT and then (??if dst).
  14. ///
  15. /// By definition, UCT experiences a discontinuity when a leap second 
  16. /// is reached. However, this discontinuity is never exposed while Unreal is
  17. /// running, as UCT is determined at startup time, and UCT is updated
  18. /// continuously during gameplay according to the CPU clock.
  19. ///
  20. /// Unreal time is exposed as a long (a 64-bit signed quantity) and
  21. /// is defined as nanoseconds elapsed since 
  22. /// midnight (00:00:00), January 1, 1970.
  23. ///
  24. /// For more information about UCT and time, see
  25. ///  http://www.bldrdoc.gov/timefreq/faq/faq.htm
  26. ///  http://www.boulder.nist.gov/timefreq/glossary.htm
  27. ///  http://www.jat.org/jtt/datetime.html
  28. ///  http://www.eunet.pt/ano2000/gen_8601.htm
  29. //=============================================================================
  30. class Time
  31.     extends Object
  32.     transient;
  33.  
  34. /*
  35. /// Returns current globally-consistent Coordinated Universal Time.
  36. static final function long GetGlobalTime();
  37.  
  38. /// Converts global time to local time, taking into account the
  39. /// local timezone and daylight savings time.
  40. static final function long GlobalToLocal();
  41.  
  42. /// Converts local time to global time, taking into account the
  43. /// local timezone and daylight savings time.
  44. static final function long LocalToGlobal();
  45.  
  46. /// Return nanoseconds part of Time, 0-999.
  47. static final invariant function long GetNSecs( long Time );
  48.  
  49. /// Returns microseconds part of Time, 0-999.
  50. static final invariant function long GetUSecs( long Time );
  51.  
  52. /// Returns milliseconds part of Time, 0-999.
  53. static final invariant function long GetMSecs( long Time );
  54.  
  55. /// Returns seconds part of Time, 0-59.
  56. static final invariant function long GetSeconds( long Time );
  57.  
  58. /// Returns minutes part of Time, 0-59.
  59. static final invariant function long GetMinutes( long Time );
  60.  
  61. /// Returns hours part of Time, 0-23.
  62. static final invariant function long GetHours( long Time );
  63.  
  64. /// Returns days part of Time, 0 (first day of month)-31 (or last day, depends on month)
  65. static final invariant function long GetDays( long Time );
  66.  
  67. /// Return day of week, 0 (Sunday)-6 (Saturday)
  68. static final invariant function long DayOfWeek( long Time );
  69.  
  70. /// Return months part of Time, 0 (January) - 11 (December)
  71. static final invariant function long GetMonths( long Time );
  72.  
  73. /// Return year.
  74. static final invariant function long GetYears( long Time );
  75.  
  76. /// Convert the difference between times Later and Earlier to
  77. /// a floating point value expressed in seconds.
  78. static final invariant function float SpanSeconds( long Later, long Earlier );
  79. */
  80.