Gentee Programming Language > Documentation > Libraries | Download documentation |
An object of the datetime type is used to work with time. This type can contain information about date and time. The filetime type is used to work with time of files.
type datetime { ushort year ushort month ushort dayofweek ushort day ushort hour ushort minute ushort second ushort msec }
year Year. month Month. dayofweek Weekday. Counted from 0.
0 is Sunday, 1 is Monday... day Day. hour Hours. minute Minutes. second Seconds. msec Milliseconds.
Operations defined for the variable of datetype type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
Operation Syntax Return type Comments = datetime Operations for setting time. += datetime Adding days to a date. -= datetime Subtracting days from a date. - datetime Difference between two dates as days and time. All values are positive numbers. -= datetime - == uint Comparison operations. != uint - < uint - > uint - <= uint - >= uint - = filetime Operations for setting time for files. == uint Operation for comparing time of files. != uint - < uint - > uint - <= uint - >= uint -
datetime.dayofyear | Day in the year |
datetime.dayofweek | Weekday |
datetime.gettime | Getting the current date and time |
datetime.setdate | Specifying a date |
datetimetoftime | Converting date from datetime into filetime |
ftimetodatetime | Converting date from filetime into datetime |
getfiledatetime | Getting date and time as strings |
abbrnameofday | Weekday name |
days | Number of days between dates |
daysinmonth | The number of days in a month |
firstdayofweek | The first day in a week |
getdateformat | Converting date into a string |
getdatetime | Getting date and time as strings |
gettimeformat | Converting time into a string |
isleapyear | Leap year check |
nameofmonth | Month name |
![]() |
![]() Copyright © 2004-2006 Gentee Inc. All rights reserved. ![]() |