Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

RelativeTime – PB Docs 2022 – PowerBuilder Library

RelativeTime – PB Docs 2022

RelativeTime

PowerScript function

Description

Obtains a time that occurs a specified number of seconds after or
before another time within a 24-hour period.

Syntax

Argument

Description

time

A value of type time

n

A long number of seconds

Return value

Time. Returns the time that occurs n seconds after time if n is
greater than 0. Returns the time that occurs n seconds before time if n is
less than 0. The maximum return value is 23:59:59. If any argument’s value
is null, RelativeTime returns null.

Usage

All PowerBuilder functions except RelativeTime use the Windows API
to process dates and times, so in most instances processing of Daylight
Savings Time (DST) is dependent on the operating system. However, the
RelativeTime function is not DST-aware and therefore may return an
incorrect time in a region that is using DST.

Examples

This statement returns 19:01:41:

This statement returns 19:01:21:

See also

SecondsAfter

RelativeTime method for DataWindows in the section called “RelativeTime” in DataWindow Reference.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x