Home Cooker Classes Others Rice CookerGX
Classes  >  datetime  >  Second
datetime class : Second getter

Description

Gets the second portion represented by this instance.

Syntax

datetimeInstance.Second

Arguments

None

Return value

ClassDescription
intSecond portion of datetime (from 0 to 59)

Sample code

datetime dt = new datetime(2016, 3, 4, 4, 13, 0);

int second = dt.Second;//0

Notes

It's a wrapper of the System.DateTime.Second.

Links for reference

Copyright © Rice All rights reserved.