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_8.sh 723 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 8:
  7. # Deal with parsing of date strings with 2-digit years and month names and no delimiters.
  8. cat <<% > tt8.txt
  9. 2010-01-22T00:00:00
  10. 2010-02-22T00:00:00
  11. 2010-03-22T00:00:00
  12. 2010-04-22T00:00:00
  13. 2010-05-22T00:00:00
  14. 2010-06-22T00:00:00
  15. 2010-07-22T00:00:00
  16. 2010-08-22T00:00:00
  17. 2010-09-22T00:00:00
  18. 2010-10-22T00:00:00
  19. 2010-11-22T00:00:00
  20. 2010-12-22T00:00:00
  21. %
  22. gmt convert --TIME_SYSTEM=rata -f0T --FORMAT_DATE_IN=yyodd <<% > tt8.d
  23. 10jan22
  24. 10feb22
  25. 10mar22
  26. 10apr22
  27. 10may22
  28. 10jun22
  29. 10jul22
  30. 10aug22
  31. 10sep22
  32. 10oct22
  33. 10nov22
  34. 10dec22
  35. %
  36. paste tt8.txt tt8.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...