Home  >  Q&A  >  body text

The problem of worldly functions

<?php echo date("m-d-Y h:m:s")."\n"; echo date("m-d-Y h:m:s",mktime(10,15,35,date("m" ),date("d"),date("Y")))."\n"; echo date("m-d-Y h:m:s",mktime(10,15,35,date("m"), date("d")-30,date("Y")))."\n"; ?>How is the mktime function used in this code? What are the first three data 10, 15, and 35? What? Why does the result still remain unchanged when I change these data?

王统帅王统帅2231 days ago1419

reply all(1)I'll reply

  • 城南花已开

    城南花已开2018-12-04 23:25:49

    m-d-Y h:m:s was changed to m-d-Y h:i:s, he wrote the minute code wrong

    reply
    1
  • Cancelreply