Official Content

Returns a numeric value, representing the seconds in a DateTime argument.

Syntax

Second(DateTime)
 
Type Returned
Numeric(2)

Scope

Objects: Procedure, Transaction, Web PanelWork Panel
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), RPG, Visual FoxPro (up to GeneXus X Evolution 3), Cobol

Samples

Suppose you only need to obtain the seconds part of a DateTime variable, attribute or expression.

&Sec= Second(Now())
// Now = 11/24/2010 02:42:39 PM
// &Sec = 39

See Also

Second method
Hour Function
Minute Function









Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant