Syntax 1 For DateTime and blob values – PB Docs 125

Syntax 1 For DateTime and blob values

Description

Extracts a time value from a DateTime value or a blob.

Syntax

Argument

Description

datetime

A DateTime value or a blob in which the
first value is a time or DateTime value. The rest of the contents
of the blob is ignored. Datetime can also
be an Any variable containing a DateTime or blob.

Return Values

Time. Returns the time in datetime as
a time. If datetime does not contain a valid
time or is an incompatible datatype, Time returns
00:00:00.000000. If datetime is null, Time returns null.

Examples

After StartDateTime has been
retrieved from the database, this example sets StartTime equal
to the time in StartDateTime:

Suppose that the value of a blob variable ib_blob contains
a DateTime value beginning at byte 32. The following statement extracts
the time from the value:

See Also

  • Time method
    for DataWindows in the DataWindow Reference or online Help


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