Home Cooker Classes Others Rice CookerGX
Classes  >  datetime
datetime class

Description

Represents the date and time.

Notes

It is a class that is dynamically embedded when the Cooker runs.

This class is distributed as Rtype.Datetime.dll.

The dll file is in the dlls directory in the Cooker's distribution archive.

fitter

SignatureDescription
datetime()

Get a new instance of datetime class.

datetime(int,int,int,int,int,int)

Return a datetime type instance that is initialized by the specified Year, month, day, hour, minute, and second.

datetime(string)

Return the datetime type instance that initialized with a string that can convert to datetime.

getter

SignatureDescription
Day

Gets the date portion represented by this instance.

Fitted

Gets the value that indicates whether this instance was already initialized.

Hour

Gets the hour portion represented by this instance.

LongDate

Gets the long form string representation of date portion.

LongTime

Gets the long form string representation of time portion.

Minute

Gets the minute portion represented by this instance.

Month

Gets the month portion represented by this instance.

Now

Gets the datetime type instance that represents the current date and time in local time.

Second

Gets the second portion represented by this instance.

ShortDate

Gets the short form string representation of date portion.

ShortTime

Gets the short form string representation of time portion.

TypeName

Gets the type name.

Year

Gets the year portion represented by this instance.

setter

This class does not have a setter.

method

SignatureDescription
AddDays(int)

Gets the new datetime instance which is obtained by adding the number of days to the invoker instance.

AddHours(int)

Gets the new datetime instance which is obtained by adding the number of hours to the invoker instance.

AddMinutes(int)

Gets the new datetime instance which is obtained by adding the number of minutes to the invoker instance.

AddMonths(int)

Gets the new datetime instance which is obtained by adding the number of months to the invoker instance.

AddSeconds(int)

Gets the new datetime instance which is obtained by adding the number of seconds to the invoker instance.

AddYears(int)

Gets the new datetime instance which is obtained by adding the number of years to the invoker instance.

Equal(datetime)

Gets the value that indicates whether the argument and the invoker are the same date and time.

Greater(datetime)

Gets the value that indicates whether the invoker advanced than the argument.

Less(datetime)

Gets the value that indicates whether the argument advanced than the invoker.

ToString()

Gets a string representation of the invoker instance.

ToString(string)

Gets a string representation that is formatted with the specified format.

Download.

Please download the datetime class ( Rtype.Datetime.dll ) from the link below.

Please download the source of the datetime class from the link below.

The above .dll and source files are distributed as a self-extracting archive of 7z format.

Copyright © Rice All rights reserved.