How to use the spacetime function in spacetime

To help you get started, we’ve selected a few spacetime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ritoplz / ritoplz / pages / signup.js View on Github external
static async getInitialProps() {
    const translations = await getTranslation('pt', 'common')
    const now = spacetime().hour()
    const greeting = await goot(now)
    return { greeting, translations }
  }
github ritoplz / ritoplz / pages / login.js View on Github external
static async getInitialProps() {
    const translations = await getTranslation('pt', 'common')
    const now = spacetime().hour()
    const greeting = await goot(now)
    return { greeting, translations }
  }

spacetime

figure-out dates across timezones

Apache-2.0
Latest version published 3 months ago

Package Health Score

81 / 100
Full package analysis

Popular spacetime functions