(command.CommandList
  children: [
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      blame_tok: <Id.Lit_LBracket '['>
                      more_env: []
                      words: [
                        {<Id.Lit_LBracket '['>}
                        {($ Id.VSub_Pound '#')}
                        {<-eq>}
                        {<1>}
                        {<Id.Lit_RBracket ']'>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.AndOr
              children: [
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'ts='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'ts='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ts='> name:ts)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (CommandSub
                            left_token: <Id.Left_Backtick '`'>
                            child: 
                              (command.Simple
                                blame_tok: <date>
                                more_env: []
                                words: [
                                  {<date>}
                                  {<--reference> <Id.Lit_Equals '='> ($ Id.VSub_Number 1)}
                                  {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>}
                                ]
                                redirects: []
                                do_fork: T
                              )
                            right: <Id.Backtick_Right '`'>
                          )
                        }
                    )
                  ]
                  redirects: []
                )
                (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>})
              ]
              ops: [<Id.Op_DPipe _>]
            )
          ]
          spids: [12 25]
        )
      ]
      else_kw: <Id.KW_Else else>
      else_action: [
        (command.ShAssignment
          left: <Id.Lit_VarLike 'ts='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'ts='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ts='> name:ts)
              op: assign_op.Equal
              rhs: 
                {
                  (CommandSub
                    left_token: <Id.Left_Backtick '`'>
                    child: 
                      (command.Simple
                        blame_tok: <date>
                        more_env: []
                        words: [{<date>} {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>}]
                        redirects: []
                        do_fork: T
                      )
                    right: <Id.Backtick_Right '`'>
                  )
                }
            )
          ]
          redirects: []
        )
      ]
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'now='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'now='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'now='> name:now)
          op: assign_op.Equal
          rhs: 
            {
              (CommandSub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (command.Simple
                    blame_tok: <date>
                    more_env: []
                    words: [{<date>} {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>}]
                    redirects: []
                    do_fork: T
                  )
                right: <Id.Backtick_Right '`'>
              )
            }
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'recent='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'recent='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'recent='> name:recent)
          op: assign_op.Equal
          rhs: 
            {
              (CommandSub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (command.Simple
                    blame_tok: <date>
                    more_env: []
                    words: [
                      {<date>}
                      {<--date> <Id.Lit_Equals '='> (DQ <'-6 months'>)}
                      {<Id.Lit_Other '+'> <Id.Lit_Other '%'> <s>}
                    ]
                    redirects: []
                    do_fork: T
                  )
                right: <Id.Backtick_Right '`'>
              )
            }
        )
      ]
      redirects: []
    )
    (command.If
      if_kw: <Id.KW_If if>
      arms: [
        (IfArm
          keyword: <Id.KW_If if>
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      children: [
                        (command.Simple
                          blame_tok: <Id.Lit_LBracket '['>
                          more_env: []
                          words: [
                            {<Id.Lit_LBracket '['>}
                            {(DQ ($ Id.VSub_DollarName ts))}
                            {<-lt>}
                            {(DQ ($ Id.VSub_DollarName recent))}
                            {<Id.Lit_RBracket ']'>}
                          ]
                          redirects: []
                          do_fork: T
                        )
                        (command.Simple
                          blame_tok: <Id.Lit_LBracket '['>
                          more_env: []
                          words: [
                            {<Id.Lit_LBracket '['>}
                            {(DQ ($ Id.VSub_DollarName ts))}
                            {<-gt>}
                            {(DQ ($ Id.VSub_DollarName now))}
                            {<Id.Lit_RBracket ']'>}
                          ]
                          redirects: []
                          do_fork: T
                        )
                      ]
                      ops: [<Id.Op_DPipe _>]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.ShAssignment
              left: <Id.Lit_VarLike 'format='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'format='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'format='> name:format)
                  op: assign_op.Equal
                  rhs: {(DQ <'+%b %e  %Y'>)}
                )
              ]
              redirects: []
            )
          ]
          spids: [95 128]
        )
      ]
      else_kw: <Id.KW_Else else>
      else_action: [
        (command.ShAssignment
          left: <Id.Lit_VarLike 'format='>
          pairs: [
            (AssignPair
              left: <Id.Lit_VarLike 'format='>
              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'format='> name:format)
              op: assign_op.Equal
              rhs: {(DQ <'+%b %e %R'>)}
            )
          ]
          redirects: []
        )
      ]
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.Simple
      blame_tok: <date>
      more_env: []
      words: [
        {<date>}
        {<--date> <Id.Lit_Equals '='> (DQ <'1970-01-01 UTC '> ($ Id.VSub_DollarName ts) <' sec'>)}
        {(DQ ($ Id.VSub_DollarName format))}
      ]
      redirects: []
      do_fork: T
    )
  ]
)