Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

current-time is outputting military time (Harlowe)

So, the Harlowe documentation says that (current-time: ) should output in 12-hour format, but when I run it at 12:00PM, for example, I get 0:00 PM. Is this a bug, or am I misunderstanding the documentation?

Comments

  • It's a bug, and unfortunately it appears that the last person who discovered it did not create a new issue reporting the problem or at least I could not find one listed.

    You should create one yourself so that the developer knows that the bug exists.

    The reason you get zero hours is because computers normally track time as the number of units (hours, minutes, seconds, ect) that have passed after mid-night, and at mid-night zero hours have passed.

    This means that if a developer is handling the 12-hour formatting themselves (which in this case they are) then they need to remember to fudge the 0 to 12 conversion.
  • Thanks. I created a ticket for it.
Sign In or Register to comment.