bug fix, removed prints in awk
This commit is contained in:
		@@ -46,19 +46,15 @@ END {
 | 
			
		||||
  cmd | getline t
 | 
			
		||||
  close(cmd)
 | 
			
		||||
  t = t + 0
 | 
			
		||||
  print "fromnano="t
 | 
			
		||||
  if (t == 0) {
 | 
			
		||||
    print "ok, DATE-TIME type"
 | 
			
		||||
    from_type = "DATE-TIME"
 | 
			
		||||
    cmd = "date -d \"" from "\" +\"@%s\" | xargs date -u +\"%Y%m%dT%H%M00Z\" -d"
 | 
			
		||||
  } else {
 | 
			
		||||
    print "ok, DATE type"
 | 
			
		||||
    from_type = "DATE"
 | 
			
		||||
    cmd = "date -d \"" from "\" +\"%Y%m%d\"";
 | 
			
		||||
  }
 | 
			
		||||
  cmd | getline from
 | 
			
		||||
  close(cmd)
 | 
			
		||||
  print "FROM="from
 | 
			
		||||
  #
 | 
			
		||||
  to = to ? to : "now"
 | 
			
		||||
  cmd = "date -d \"" to "\" +\"%N\"";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user