How to use the @xmpp/time.datetime function in @xmpp/time

To help you get started, we’ve selected a few @xmpp/time 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 xmppjs / xmpp.js / packages / plugins / time / handle.js View on Github external
callee.add(match, () => (
    xml('time', {xmlns: NS_TIME},
      xml('tzo', {}, time.offset()),
      xml('utc', {}, time.datetime())
    )
  ))
github xmppjs / xmpp.js / packages / plugins / time / callee.js View on Github external
getTime() {
      return {
        tzo: time.offset(),
        utc: time.datetime(),
      }
    },
    start() {

@xmpp/time

XMPP Date and Time Profiles for JavaScript

ISC
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular @xmpp/time functions