Changes in / [e6128959:f107afe]
- File:
-
- 1 edited
-
tests/time.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/time.cfa
re6128959 rf107afe 10 10 // Created On : Tue Mar 27 17:24:56 2018 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 18 21:56:01 202413 // Update Count : 6412 // Last Modified On : Fri Apr 16 14:59:53 2021 13 // Update Count : 38 14 14 // 15 15 16 16 #include "time.hfa" 17 17 #include <fstream.hfa> 18 #include <stdlib.h> // putenv19 20 extern "C" size_t malloc_unfreed() { return 337; } // unfreed storage from tzset21 18 22 19 int main() { 23 // Set fixed time location to obtain repeatable output where ever run.24 putenv("TZ=America/Toronto"); // set fixed time zone25 tzset(); // set time zone26 27 20 Duration d1 = 3`h, d2 = 2`s, d3 = 3.375`s, d4 = 12`s, d5 = 1`s + 10_000`ns; 28 21 sout | d1 | d2 | d3 | d4 | d5;
Note:
See TracChangeset
for help on using the changeset viewer.