Official Content

Adds seconds to a DateTime attribute or variable.

Syntax

Date | DateTime.AddSeconds(Numeric-expression)

Where:

Date | DateTime
     
Is an attribute or variable based on the Date/DateTime data type, to which the method will add a certain number of seconds.

Numeric-expression
     Is a Numeric expression that indicates the number of seconds to be added to the Date | DateTime.

Type Returned:
DateTime

Scope

Data Types: DateTime
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), RPG, Visual FoxPro (up to GeneXus X Evolution 3) , Cobol

Description

Returns a DateTime value, corresponding to adding a Numeric-expression to the seconds of  the Date | DateTime expression.

Samples

&DateTime = &DateTime.AddSeconds(&Secs)

See Also

TAdd function
Difference method






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