Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

pimatic-datetime

0.3.1 • Public • Published

Description

This plugin provides date and time information

Configuration

Sample Plugin Config:

{
  "plugin": "datetime"
}

Sample Device Config:

There are four optional configuration parameters

  • interval - the update interval of the device in ms. Default: 5000
  • locale - is used for formatting the local variables
  • dateformat - is used for formatting the "formatted" variable
  • timezone - is used for calculating date and time from different timezones
  • referenceDate - a fix reference date for date calculations. Format: YYYY-MM-dd HH:mm:ss
  • differenceFormat - the format for date calculation differences [days|hours|minutes|seconds]
    {
      "name": "datetime",
      "class": "DateTimeDevice",
      "xAttributeOptions": [],
      "id": "datetime",
      "locale": "en-US",
      "dateformat": "YYYY-MM-DD"
    }

Beware

This plugin is in an early alpha stadium and you use it on your own risk. I'm not responsible for any possible damages that occur on your health, hard- or software.

License

MIT

Keywords

none

install

npm i pimatic-datetime

Downloadsweekly downloads

26

version

0.3.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability