contents.gifprev1.gifnext1.gif

X2Y() - X to Y

These functions convert X to Y. In the function declaration we used X2Y. This need to be replaced by one the following function names.

YR2DAY
year to day
YR2HR
year to hour
YR2MIN
year to minute
YR2SEC
year to second


DAY2YR
day to year
DAY2HR
day to hour
DAY2MIN
day to minute
DAY2SEC
day to second


HR2YR
hour to year
HR2DAY
hour to day
HR2MIN
hour to minute
HR2SEC
hour to second


MIN2YR
minute to year
MIN2DAY
minute to day
MIN2HR
minute to hour
MIN2SEC
minute to second


SEC2YR
second to year
SEC2DAY
second to day
SEC2HR
second to hour
SEC2MIN
second to minute
Returns

Double value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
double
dNumber
Quantity
16 bit DLL declarations

PowerBuilder Function declaration

function double DAY2HR(double dNumber) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function DAY2HR lib "IFL16" (ByVal dNumber As Double) As Double

C/C++ Synopsis

#include "function.h"

double DAY2HR(double dNumber)

32 bit DLL declarations

PowerBuilder Function declaration

function double DAY2HR(double dNumber) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function DAY2HR lib "IFL32" (ByVal dNumber As Double) As Double

C/C++ Synopsis

#include "function.h"

double DAY2HR(double dNumber)

Example:

dNumber
=
500

Result: 12,000