Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

time_testing_7.sh 731 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  1. #!/usr/bin/env bash
  2. #
  3. #
  4. # This script runs some simple test to verify the that new time scheme
  5. # has been implemented successfully
  6. # Test 7:
  7. # Deal with parsing of date strings with 2-digit years and month names.
  8. cat <<% > tt7.txt
  9. 2012-01-24T00:00:00
  10. 2012-02-24T00:00:00
  11. 2012-03-24T00:00:00
  12. 2012-04-24T00:00:00
  13. 2012-05-24T00:00:00
  14. 2012-06-24T00:00:00
  15. 2012-07-24T00:00:00
  16. 2012-08-24T00:00:00
  17. 2012-09-24T00:00:00
  18. 2012-10-24T00:00:00
  19. 2012-11-24T00:00:00
  20. 2012-12-24T00:00:00
  21. %
  22. gmt convert --TIME_SYSTEM=rata -f0T --FORMAT_DATE_IN=yy-o-dd <<% > tt7.d
  23. 12-JAN-24
  24. 12-FEB-24
  25. 12-MAR-24
  26. 12-APR-24
  27. 12-MAY-24
  28. 12-JUN-24
  29. 12-JUL-24
  30. 12-AUG-24
  31. 12-SEP-24
  32. 12-OCT-24
  33. 12-NOV-24
  34. 12-DEC-24
  35. %
  36. paste tt7.txt tt7.d | $AWK '{if ($1 != $2) print $0}' > fail
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...