Home Cooker Classes Others Rice CookerGX
Classes  >  datetime  >  Greater(datetime)
datetime class : Greater(datetime) method

Description

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

Syntax

datetimeInstance.Greater(datetime argDatetime)

Arguments

ClassNameDescription
datetimeargDatetimeA datetime type instance that is compared.

Return value

ClassDescription
boolIf the invoker advanced than the argument, returns true. Otherwise, return false.

Sample code

datetime dt = new datetime(2013,12,14,10,10,9);

datetime dt2 = new datetime(2013,12,14,10,10,8);

datetime dtt = new datetime(2013,12,14,10,10,10);

bool great1 = dt.Greater(dt);//false

bool great2 = dt.Greater(dt2);//true

bool great3 = dt.Greater(dtt);//false

Notes

None

Links for reference

None

Copyright © Rice All rights reserved.