Home  >  Q&A  >  body text

php时间戳计算

给定一个时间戳,如何获取n月后的时间戳 n<=12

迷茫迷茫2683 days ago547

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