DateInterval

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn UDT >

DateInterval

 

Description

 

DateInterval structure used to calculate date and time differences between 2 cDateTime variables

 

Syntax

 

Type DateInterval

  Years    as Long

  Months   as Long

  Days     as Long

  Hours    as Long

  Minutes  as Long

  Seconds  as Long

  MSeconds as Quad

  Ticks    as Quad

  Sign     as Long

  nDays    as Long

End Type

 

Remarks

 

nDays: if DateInterval UDT was created by TimeDiff or by Diff cDateTime methods, then this is the total number of days between the start and end dates. Otherwise, nDays will be 0.

 

See also

 

<cDateTime>.TimeDiff

<cDateTime>.DateDiff

<cDateTime>.Diff

 

Examples

 

Dim MyDateInterval as DateInterval