[Chapel Merge] Update datetime.now() to use 0-based tuple indexin

Branch: refs/heads/master
Revision: ff63799
Author: daviditen
Log Message:

Merge pull request #16443 from daviditen/datetime-one-based-tuple

Update datetime.now() to use 0-based tuple indexing

[reviewed by @ben-albrecht]

The function datetime.now() was calling a function that was using 1-based
tuple indexing, so the datetime was calculated with the milliseconds instead
of seconds. Fix it to be 0-based.

Add a test to make sure datetime.now() is reasonable.

Modified Files:
A test/library/standard/DateTime/testNow.chpl
A test/library/standard/DateTime/testNow.good
M modules/standard/DateTime.chpl

Compare: https://github.com/chapel-lang/chapel/compare/31dff4f2a797...ff63799929bc