GetEra() public method

public GetEra ( System.DateTime time ) : int
time System.DateTime
return int
示例#1
0
        /*=================================GetEra==========================
         **Action: Get the era value of the specified time.
         **Returns: The era value for the specified time.
         **Arguments:
         **      time the specified date time.
         **Exceptions: ArgumentOutOfRangeException if time is out of the valid era ranges.
         **============================================================================*/


        public override int GetEra(DateTime time)
        {
            return(helper.GetEra(time));
        }