Parse.sql 767 B

12345678910111213141516171819202122232425
  1. /* syntax version 1 */
  2. $parse1 = DateTime::Parse("%Y %m %d %H%M%S %Z text");
  3. $parse2 = DateTime::Parse("%%text%% %m/%d/%Y %H:%M:%S");
  4. $parse3 = DateTime::Parse("%B/%d/%Y");
  5. $parse4 = DateTime::Parse("%b/%d/%Y");
  6. $format1 = DateTime::Format("%Y-%m-%dT%H:%M:%S,%Z");
  7. $format2 = DateTime::Format("%Y%m%d %H%M%S %z");
  8. $format3 = DateTime::Format("%Y%m%d");
  9. select
  10. $format1($parse1(fdatetime1)),
  11. $format2($parse1(fdatetime1)),
  12. $format1($parse2(fdatetime2)),
  13. $format2($parse2(fdatetime2)),
  14. $format3($parse3(fdatetime3)),
  15. $format3($parse4(fdatetime4)),
  16. $format1(DateTime::ParseRfc822(frfc822)),
  17. $format1(DateTime::ParseIso8601(fiso8601)),
  18. $format1(DateTime::ParseHttp(fhttp)),
  19. $format1(DateTime::ParseX509(fx509))
  20. from Input