Nodemill Addins


Install Fields, APIs and pages (coming soon) using the public repository.

Search:
Within:

Nodemill API: timezone

Nodemill Version Nodemill Downloads

Install

nodemill install api timezone

Details

  • Author: Dogfish Mobile
  • Short desc: Get a timezone from a lat/lon
  • Keywords: time,timezone,zone

Node dependencies

  • request
  • moment

Full Description

Get timezone information for any location. Pass the lat/lon and get back the current time for that location as well as timezone name and offset

Version history

  • 1.0.0 Created

Examples

/api/timezone/51.489935,-0.111237

Response:

{
    "headers": {
        "code": 200,
    },
    "data": {
        "timezone": "Europe/London",
        "timezoneName": "British Summer Time",
        "localTime": "22:29:42",
        "utcTime": "21:29:42",
        "daylightSavingOffset": 60,
        "utcOffset": 0
    },
    "md5": "157355"
}