am pm with clock

steeler0038steeler0038 Member Posts: 153
edited January 2012 in Working with GS (Mac)
How can I get gamesalad to tell you if it is am or pm through the clock?

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    edited January 2012
    digital clockTime is what we in the USA used to call military time … 24 hour base time runs from 0 through 23

    midnight 0 through 11 are AM
    Rule when (All)
    Attribute: game.clock.Hour ≥ 0
    Attribute: game.clock.Hour < 12
    --changeAttribute: whatever you use to show AM

    noon 12 through 23 are PM
    Rule: when (All)
    Attribute: game.clock.Hour ≥ 12
    Attribute: game.clock.Hour < 0
    --changeAttribute: whatever you use to show PM

    (oh dear, hope I got that right!)

    great expressions to use with clock … in the iOSTime demo!

    @};- MH
  • steeler0038steeler0038 Member Posts: 153
    Thanks guys! didn't realize the clock was military time
Sign In or Register to comment.