Skip to content

Commit

Permalink
Merge pull request #324 from synthead/use-times-for-tomorrow-in-proto…
Browse files Browse the repository at this point in the history
…col-7-documentation

Use relative times for tomorrow for calendar events in protocol 7 documentation
  • Loading branch information
synthead authored Aug 13, 2023
2 parents ae4cdb4 + 2106269 commit 30642fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/dsi_ebrain_protocol_7.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,18 @@ games = TimexDatalinkClient::Protocol7::Eeprom::Games.new(
)

time = Time.now
tomorrow = time.to_date + 1

breakfast_with_cousins = phrase_builder.vocab_ids_for("Breakfast", "With", "Cousins")
crashing_around_the_house = phrase_builder.vocab_ids_for("Crashing", "Around", "The", "House")

events = [
TimexDatalinkClient::Protocol7::Eeprom::Calendar::Event.new(
time: Time.new(2022, 12, 13, 9, 0, 0),
time: Time.new(tomorrow.year, tomorrow.month, tomorrow.day, 9, 0, 0),
phrase: breakfast_with_cousins
),
TimexDatalinkClient::Protocol7::Eeprom::Calendar::Event.new(
time: Time.new(2022, 12, 13, 19, 0, 0),
time: Time.new(tomorrow.year, tomorrow.month, tomorrow.day, 19, 0, 0),
phrase: crashing_around_the_house
)
]
Expand Down

0 comments on commit 30642fb

Please sign in to comment.