Unit 'system.timespan' Package
[Overview][Types][Index] [#rtl-objpas]

TTimeSpan

Declaration

Source position: system.timespan.pp line 27

type TTimeSpan = record

public

const

  TicksPerMillisecond = 10000

  TicksPerSecond = 1000 * Int64(TicksPerMillisecond)

  TicksPerMinute = 60 * Int64(TicksPerSecond)

  TicksPerHour = 60 * Int64(TicksPerMinute)

  TicksPerDay = 24 * TIcksPerHour

public

  function Add(); overload;

  function Duration;

  function Negate;

  function Subtract();

  function ToString;

  class function FromDays();

  class function FromHours();

  class function FromMinutes();

  class function FromSeconds();

  class function FromMilliseconds();

  class function FromTicks();

  class function Parse();

  class function TryParse();

  class operator add(TTimeSpan,TTimeSpan):TTimeSpan();

  class operator add(TTimeSpan,TDateTime):TDateTime();

  class operator add(TDateTime,TTimeSpan):TDateTime();

  class operator subtract(TTimeSpan,TTimeSpan):TTimeSpan();

  class operator subtract(TDateTime,TTimeSpan):TDateTime();

  class operator equal(TTimeSpan,TTimeSpan):Boolean();

  class operator notequal(TTimeSpan,TTimeSpan):Boolean();

  class operator greaterthan(TTimeSpan,TTimeSpan):Boolean();

  class operator greaterthanorequal(TTimeSpan,TTimeSpan):Boolean();

  class operator lessthan(TTimeSpan,TTimeSpan):Boolean();

  class operator lessthanorequal(TTimeSpan,TTimeSpan):Boolean();

  class operator negative(TTimeSpan):TTimeSpan();

  class operator positive(TTimeSpan):TTimeSpan();

  class operator implicit(TTimeSpan):string();

  class operator explicit(TTimeSpan):string();

  property Ticks: Int64; [r]

  property Days: Integer; [r]

  property Hours: Integer; [r]

  property Minutes: Integer; [r]

  property Seconds: Integer; [r]

  property Milliseconds: Integer; [r]

  property TotalDays: Double; [r]

  property TotalHours: Double; [r]

  property TotalMinutes: Double; [r]

  property TotalSeconds: Double; [r]

  property TotalMilliseconds: Double; [r]

  property MinValue: TTimeSpan; [r]

  property MaxValue: TTimeSpan; [r]

  property Zero: TTimeSpan; [r]

end;


Documentation generated on: 2023-03-18