|
of_days
|
|
Full name
|
pfc_n_cst_datetime.of_days
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_days(long)
|
Name
|
Datatype
|
ll_null
|
long
|
ll_result
|
long
|
public function long of_days (long al_seconds);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Days
//
// Access: public
//
// Arguments:
// al_seconds Number of seconds to convert to days.
//
// Returns: long
// Number of whole days.
// If any argument's value is NULL, function returns NULL.
// If any argument's value is Invalid, function returns -1.
//
// Description: Given the number of seconds, function will return the equivalient
// number of whole days
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
long ll_result
//Check parameters
If IsNull(al_seconds) Then
long ll_null
SetNull(ll_null)
Return ll_null
End If
If al_seconds < 0 Then
Return -1
End If
//converts to hours and divide by 24
ll_result = (al_seconds / 3600) / 24
Return ll_result
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.setnull |
systemfunctions
|