(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'file='> name:file)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 1))}
          spids: [75]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'epoch='> name:epoch)
          op: assign_op.Equal
          rhs: {(DQ ($ Id.VSub_Number 2))}
          spids: [80]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-f>} 
                          {(DQ ($ Id.VSub_DollarName file))} {<Id.Lit_RBracket ']'>}
                        )
                        (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<-ne>} {<1>} {<-a>} 
                          {($ Id.VSub_Pound '#')} {<-ne>} {<2>} {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [
                {<echo>}
                {
                  (DQ <'Usage: '> 
                    (command_sub
                      left_token: <Id.Left_Backtick '`'>
                      child: (C {<basename>} {($ Id.VSub_Number 0)})
                      right: <Id.Backtick_Right '`'>
                    ) <' file [epoch]'>
                  )
                }
              ]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              more_env: []
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [86 121]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {(DQ ($ Id.VSub_DollarName epoch))} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'epoch='> name:epoch)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: 
                              (C {<date>} 
                                {<--reference> <Id.Lit_Equals '='> (DQ ($ Id.VSub_DollarName file))} {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s.> <Id.Lit_Other '%'> <N>}
                              )
                            right: <Id.Backtick_Right '`'>
                          )
                        }
                      spids: [165]
                    )
                  ]
                  redirects: []
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              ]
            )
          ]
          spids: [149 162]
        )
      ]
      else_action: [
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          children: [
                            (C {<echo>} {(DQ ($ Id.VSub_DollarName epoch))})
                            (C {<grep>} {<-Eq>} {(DQ <'^['> <Id.Lit_BadBackslash '\\'> <'+-]'>)})
                          ]
                          negated: F
                          stderr_indices: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              action: [
                (command.Simple
                  words: [{<echo>} {(DQ <'Epochs with leading +/- are ambiguous with editor options'>)}]
                  redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                  more_env: []
                  do_fork: T
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              ]
              spids: [193 214]
            )
          ]
          else_action: []
          redirects: []
        )
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (command.Pipeline
                          children: [
                            (command.Simple
                              words: [
                                {<date>}
                                {<--date> <Id.Lit_Equals '='> 
                                  (DQ <'1970-01-01 UTC '> ($ Id.VSub_DollarName epoch) <' seconds'>)
                                }
                              ]
                              redirects: [
                                (redir
                                  op: <Id.Redir_Great '>'>
                                  loc: (redir_loc.Fd fd:1)
                                  arg: {<'/dev/null'>}
                                )
                                (redir
                                  op: <Id.Redir_GreatAnd '2>&'>
                                  loc: (redir_loc.Fd fd:2)
                                  arg: {<1>}
                                )
                              ]
                              more_env: []
                              do_fork: T
                            )
                          ]
                          negated: T
                          stderr_indices: []
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              action: [
                (command.Simple
                  words: [
                    {<echo>}
                    {(DQ <'Invalid epoch specified ['> ($ Id.VSub_DollarName epoch) <']'>)}
                  ]
                  redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                  more_env: []
                  do_fork: T
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              ]
              spids: [235 256]
            )
          ]
          else_action: []
          redirects: []
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<echo>} {(DQ ($ Id.VSub_DollarName epoch))})
                        (C {<grep>} {<-Fq>} {(DQ <.>)})
                      ]
                      negated: F
                      stderr_indices: []
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'seconds='> name:seconds)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (command.Pipeline
                            children: [
                              (C {<echo>} {($ Id.VSub_DollarName epoch)})
                              (C {<cut>} {<-d.>} {<-f1>})
                            ]
                            negated: F
                            stderr_indices: []
                          )
                        right: <Id.Backtick_Right '`'>
                      )
                    }
                  spids: [306]
                )
              ]
              redirects: []
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.Pipeline
                              children: [
                                (C {<echo>} {($ Id.VSub_DollarName epoch)})
                                (C {<grep>} {<-Eq>} 
                                  {(DQ <Id.Lit_BadBackslash '\\'> <'.0+'> <Id.Lit_Dollar '$'>)}
                                )
                              ]
                              negated: F
                              stderr_indices: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'epoch='> name:epoch)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName seconds)}
                          spids: [349]
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [324 343]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'checkns='> name:checkns)
                      op: assign_op.Equal
                      rhs: {(DQ <true>)}
                      spids: [359]
                    )
                  ]
                  redirects: []
                )
              ]
              redirects: []
            )
          ]
          spids: [281 300]
        )
      ]
      else_action: []
      redirects: []
    )
    (C 
      {
        (braced_var_sub
          left: <Id.Left_DollarBrace '${'>
          token: <Id.VSub_Name EDITOR>
          var_name: EDITOR
          suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<vim>})
          right: <Id.Right_DollarBrace '}'>
        )
      } {(DQ ($ Id.VSub_DollarName file))}
    )
    (command.AndOr
      ops: [Id.Op_DAmp Id.Op_DPipe]
      children: [
        (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {(DQ ($ Id.VSub_DollarName seconds))} 
          {<Id.Lit_RBracket ']'>}
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'err='> name:err)
              op: assign_op.Equal
              rhs: {(DQ <'/dev/tty'>)}
              spids: [394]
            )
          ]
          redirects: []
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'err='> name:err)
              op: assign_op.Equal
              rhs: {(DQ <'/dev/null'>)}
              spids: [401]
            )
          ]
          redirects: []
        )
      ]
    )
    (command.Simple
      words: [
        {<touch>}
        {(DQ ($ Id.VSub_DollarName file))}
        {<--date> <Id.Lit_Equals '='> 
          (DQ <'1970-01-01 UTC '> ($ Id.VSub_DollarName epoch) <' seconds'>)
        }
      ]
      redirects: [
        (redir
          op: <Id.Redir_Great '2>'>
          loc: (redir_loc.Fd fd:2)
          arg: {($ Id.VSub_DollarName err)}
        )
      ]
      more_env: []
      do_fork: T
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '?')} {<-ne>} {<0>} {<-a>} 
                      {(DQ ($ Id.VSub_DollarName seconds))} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<touch>} {(DQ ($ Id.VSub_DollarName file))} 
                  {<--date> <Id.Lit_Equals '='> 
                    (DQ <'1970-01-01 UTC '> ($ Id.VSub_DollarName seconds) <' seconds'>)
                  }
                )
                (command.Simple
                  words: [{<echo>} {(DQ <'Warning: sub second portion of timestamp ignored'>)}]
                  redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
                  more_env: []
                  do_fork: T
                )
              ]
            )
          ]
          spids: [423 442]
        )
      ]
      else_action: [
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: 
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName checkns))} 
                          {<Id.Lit_RBracket ']'>}
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'new_ts='> name:new_ts)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: 
                              (C {<date>} 
                                {<--reference> <Id.Lit_Equals '='> (DQ ($ Id.VSub_DollarName file))} {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s.> <Id.Lit_Other '%'> <N>}
                              )
                            right: <Id.Backtick_Right '`'>
                          )
                        }
                      spids: [491]
                    )
                  ]
                  redirects: []
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'diff='> name:diff)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: 
                              (command.Pipeline
                                children: [
                                  (C {<echo>} 
                                    {
                                      (DQ <'(('> ($ Id.VSub_DollarName epoch) <-> 
                                        ($ Id.VSub_DollarName new_ts) <')*10^9)/1'>
                                      )
                                    }
                                  )
                                  (C {<bc>})
                                ]
                                negated: F
                                stderr_indices: []
                              )
                            right: <Id.Backtick_Right '`'>
                          )
                        }
                      spids: [511]
                    )
                  ]
                  redirects: []
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName diff)} {<-ne>} {<0>} 
                                  {<Id.Lit_RBracket ']'>}
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (command.Simple
                          words: [
                            {<echo>}
                            {(DQ <'Warning: timestamp set '> (${ Id.VSub_Name diff) <'ns backwards'>)}
                          ]
                          redirects: [
                            (redir
                              op: <Id.Redir_GreatAnd '>&'>
                              loc: (redir_loc.Fd fd:1)
                              arg: {<2>}
                            )
                          ]
                          more_env: []
                          do_fork: T
                        )
                      ]
                      spids: [531 544]
                    )
                  ]
                  else_action: []
                  redirects: []
                )
              ]
              spids: [477 488]
            )
          ]
          else_action: []
          redirects: []
        )
      ]
      redirects: []
    )
  ]
)