|
On Wed, Jun 27, 2018 at 7:20 PM, Dan <dan27649@xxxxxxxxx> wrote:
How about system value QDATETIME?
RTVSYSVAL QDATETIME returns a YYYYMMDDHHNNSSXXXXXX value. Substring the
first 4 bytes for the 4-digit year.
Hm. If that doesn't count as the canonical method (given the system
values available today), it should be. Certainly better than getting
QCENTURY involved. I kept glossing over this one because I didn't
realize it would be any better than the combination of QDATE and
QTIME. And yet it is! Better than both of them!
The documentation is still pretty adamant that the date range is
limited, though. I would think QDATETIME is subject to the same limits
as any of the other system values, just that it's formatted better and
has better precision. I'm really hoping the documentation I quoted in
my previous post is simply incorrect.
Thanks for the tip! I'm definitely going to use it!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.