tumblr tracker

GetSecond

Library Reference ›› DateTime ››
Parent Previous Next

DateTime.GetSecond


Namespace: DateTime


Returns the second value from a datetime variable.


retval = DateTime.GetSecond(DateTime)


Parameters:

- DateTime; datetime variable or function call returning datetime variable; the datetime value to extract the day from


Returns:

Value between 0 and 59; numeric value.


Example


$val = DateTime.GetSecond(DateTime.GetCurrentDateTime());


After execution the $val variable will contain the current second value (0 to 59).