search

Home  >  Q&A  >  body text

php timestamp calculation

Given a timestamp, how to get the timestamp n months later n<=12

迷茫迷茫2831 days ago660

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 13:01:01

    strtotime('+'.n.' month',time())

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:01:01

    strtotime('+1 month', $Date)), there is

    in the document

    reply
    0
  • Cancelreply