(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<-eq>} {<1>} 
                      {<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 'ts='> name:ts)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: 
                              (C {<date>} {<--reference> <Id.Lit_Equals '='> ($ Id.VSub_Number 1)} 
                                {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>}
                              )
                            right: <Id.Backtick_Right '`'>
                          )
                        }
                      spids: [28]
                    )
                  ]
                  redirects: []
                )
                (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              ]
            )
          ]
          spids: [12 25]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ts='> name:ts)
              op: assign_op.Equal
              rhs: 
                {
                  (command_sub
                    left_token: <Id.Left_Backtick '`'>
                    child: (C {<date>} {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>})
                    right: <Id.Backtick_Right '`'>
                  )
                }
              spids: [52]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'now='> name:now)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: (C {<date>} {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>})
                right: <Id.Backtick_Right '`'>
              )
            }
          spids: [66]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'recent='> name:recent)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (C {<date>} {<--date> <Id.Lit_Equals '='> (DQ <'-6 months'>)} 
                    {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>}
                  )
                right: <Id.Backtick_Right '`'>
              )
            }
          spids: [77]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      ops: [Id.Op_DPipe]
                      children: [
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName ts))} {<-lt>} 
                          {(DQ ($ Id.VSub_DollarName recent))} {<Id.Lit_RBracket ']'>}
                        )
                        (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName ts))} {<-gt>} 
                          {(DQ ($ Id.VSub_DollarName now))} {<Id.Lit_RBracket ']'>}
                        )
                      ]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'format='> name:format)
                  op: assign_op.Equal
                  rhs: {(DQ <'+%b %e  %Y'>)}
                  spids: [131]
                )
              ]
              redirects: []
            )
          ]
          spids: [95 128]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'format='> name:format)
              op: assign_op.Equal
              rhs: {(DQ <'+%b %e %R'>)}
              spids: [139]
            )
          ]
          redirects: []
        )
      ]
      redirects: []
    )
    (C {<date>} 
      {<--date> <Id.Lit_Equals '='> (DQ <'1970-01-01 UTC '> ($ Id.VSub_DollarName ts) <' sec'>)} {(DQ ($ Id.VSub_DollarName format))}
    )
  ]
)