Giter Club home page Giter Club logo

homebus-tick's Introduction

HomeBus Tick

This is a simple Ruby program which publishes a "tick" to HomeBus once per second. The tick includes the number of seconds since the epoch as well as the current year, month, month day, weekday, hour, minute, second and timezone information.

While the tick is published once a second, timing critical applications should not rely on its frequency as there can be indeterminate latency between the publish time and the time it's received.

Data is published as 'org.homebus.tick':

    'org.homebus.tick': {
                            year: 2020,
                            month: 1,
                            month_day: 1,
                            weekday: 1,
                            hour: 0,
                            minute: Time.now.min,
                            second: Time.now.sec,
                            timezone_code: Time.now.zone,
                            timezone_offset: Time.now.utc_offset
                          }
  • year: four digit year
  • month: one digit month number, 1 - 12
  • month_day: one to two digit day of the month number, 1-31
  • weekday: one digit day of the week number, 1-7 (Sunday - Saturday)
  • hour: two digit hour number, 0 - 23
  • minute: two digit minute number, 0 - 59
  • second: two digit second number, 0 - 59
  • timezone_code: text timezone code, for instance "PST"
  • numeric timezone offset from UTC

homebus-tick's People

Contributors

dependabot[bot] avatar romkey avatar

Watchers

 avatar  avatar

Forkers

xiangxud

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.