SecondsAfter PowerScript function
Description
Determines the number of seconds one time occurs after another.
Syntax
|
1 |
<span>SecondsAfter</span> ( <span>time1</span>, <span>time2</span> ) |
|
Argument |
Description |
|---|---|
|
time1 |
A time value that is the start time of |
|
time2 |
A time value that is the end time of |
Return Values
Long. Returns the number of seconds time2 occurs
after time1. If time2 occurs before time1, SecondsAfter returns
a negative number. If any argument’s value is null, SecondsAfter returns null.
Examples
This statement returns 15:
|
1 |
<span>SecondsAfter</span>(21:15:30, 21:15:45) |
This statement returns -15:
|
1 |
<span>SecondsAfter</span>(21:15:45, 21:15:30) |
This statement returns 0:
|
1 |
<span>SecondsAfter</span>(21:15:45, 21:15:45) |
If you declare start_time and end_time time
variables and assign 19:02:16 to start_time and
19:02:28 to end_time as shown below:
|
1 |
time start_time, end_time |
|
1 |
start_time = 19:02:16 |
|
1 |
end_time = 19:02:28 |
then each of these statements returns 12:
|
1 |
<span>SecondsAfter</span>(start_time, end_time) |
|
1 |
<span>SecondsAfter</span>(19:02:16, end_time) |
|
1 |
<span>SecondsAfter</span>(start_time, 19:02:28) |
|
1 |
<span>SecondsAfter</span>(19:02:16, 19:02:28) |
See Also
-
SecondsAfter method
for DataWindows in the DataWindow Reference or the online Help
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest