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.

Ver 1.0.0.1 : The value returned by the declaration and the default fitter has been changed to the instance acquisition time.

DLL

Rtype.Datetime.dll

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 a datetime type instance that initialized with a string that can convert to datetime.

getter

SignatureDescription
Day

Gets the date portion represented by this instance.

DayOfWeek

Gets the day of the week.

DayOfYear

Gets the elapsed days since the beginning of the year.

Fitted

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

Hour

Gets the hour portion represented by this instance.

LongDate

Gets a long form string representation of date portion.

LongTime

Gets a long form string representation of time portion.

Millisecond

Gets the millisecond portion of the time represented by this instance.

Minute

Gets the minute portion represented by this instance.

Month

Gets the month portion represented by this instance.

Now

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

Second

Gets the second portion represented by this instance.

ShortDate

Gets a short form string representation of date portion.

ShortTime

Gets a short form string representation of time portion.

Ticks

Gets the number of ticks of the time represented by this instance.

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 a new datetime instance which is obtained by adding the number of days to the invoker instance.

AddHours(int)

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

AddMinutes(int)

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

AddMonths(int)

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

AddSeconds(int)

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

AddYears(int)

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

DayDiff(datetime)

Gets the difference between the caller instance and the argument in days.

Equal(datetime)

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

Greater(datetime)

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

HourDiff(datetime)

Gets the difference between the caller instance and the argument in hours.

MinDiff(datetime)

Gets the difference between the caller instance and the argument in minutes.

MsecDiff(datetime)

Gets the difference between the caller instance and the argument in milliseconds.

Less(datetime)

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

SecDiff(datetime)

Gets the difference between the caller instance and the argument in seconds.

TicksDiff(datetime)

Gets the difference between the caller instance and the argument in ticks.

ToString()

Gets a string representation of the invoker instance.

ToString(string)

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

Downloads for latest version.

Downloads the datetime class ver 1.0.0.1 for Any CPU.

Downloads the datetime class ver 1.0.0.1 for x86.

Downloads the datetime class ver 1.0.0.1 for x64.

Downloads the source of datetime class ver 1.0.0.1.

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

Copyright © Cooker All rights reserved.