O'Reilly logo

APIs at Work, Second Edition by Ron Hawkins, Doug Pence, Bruce Vining

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Converting a System Timestamp Using the QWCCVTDT API

Many APIs return date and time information in an eight-byte value known as the system timestamp. This represents, believe it or not, the number of microseconds that have elapsed since August 23, 1928 at 12:03:06 and 314,752 microseconds, P.M. This format is quite good at storing very granular time values in a small amount of storage, but it’s not very handy at presenting time to a user! As you probably expect, this is one case where QWCCVTDT comes to the rescue.

Let’s go back to the List Objects API (QUSLOBJ). The example program FIG3_4 generated a list of *FILE objects using format OBJL0200. This program used OBJL0200 because we wanted to examine the file’s extended object attribute to determine ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required