Author Topic: Time  (Read 3716 times)

ARSEnic.

  • Newbie
  • *
  • Posts: 47
  • Karma: +17/-15
  • Hell o!
    • View Profile
Time
« on: August 28, 2016, 06:16:48 am »
I'm not sure if its just my computer or me, but when i use date().month, it gives me a '7' when its august, i changed the date on the PC to September and it returned me an '8'. Does anyone here have the same problem or is it just me?

JamesConway

  • Newbie
  • *
  • Posts: 39
  • Karma: +9/-3
    • View Profile
Re: Time
« Reply #1 on: August 28, 2016, 10:47:27 am »
Is january is 0?

Ankris

  • Full Member
  • ***
  • Posts: 110
  • Karma: +29/-44
    • View Profile
Re: Time
« Reply #2 on: August 28, 2016, 12:22:43 pm »
Is january is 0?

This^.

date().month+1.

ARSEnic.

  • Newbie
  • *
  • Posts: 47
  • Karma: +17/-15
  • Hell o!
    • View Profile
Re: Time
« Reply #3 on: August 30, 2016, 03:51:35 pm »
Apparently I worked it out myself, i totally forgot that in computer coding, 0=1. Stupid me. :P

SugarD

  • Asshat Gaming Founder
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: Time
« Reply #4 on: September 16, 2016, 06:08:10 pm »
Glad to see it is fixed! :D

As the issue is resolved, the topic will be locked.

 

© Liberty Unleashed Team.