-1

so this is weird i dont understand why i am getting this but anyway

my code is

$checkTime = "00:00";
echo 'Check Time : '.date('H:i', $checkTime);
echo "<br>";

the value allways gets output as Check Time : 00:01 say i increment the mins value it then increaments the hour value.

But if i increment the hour value it then increments the minute value...

anyway my main issue is with the value set at 00:00, it outputs 00:01 and i dont understand why it does this, and if i increment the value it increments by one each time.

Can anyone help me understand why its doing this?

Rizier123
  • 58,877
  • 16
  • 101
  • 156
iCeptic
  • 75
  • 1
  • 7

1 Answers1

1

http://php.net/manual/en/function.date.php

Second parameter of date function should be in Unix Time Stamp format.

MilanG
  • 6,994
  • 2
  • 35
  • 64
  • Thanks, sorry it was a silly issue its been a long day today :( i dont think the heatwave here is helping either lol. – iCeptic Jun 12 '15 at 11:50