Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/sajjaphani/go-timezone

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sajjaphani/go-timezone

  • v0.0.0-20230604160247-12478808437e
  • Source
  • Go
  • Socket score

Version published
Created
Source

Timezone

A Go project for finding timezone information. It retrieves the following information from the system.

  • Offset from UTC: The offset represents the difference in hours and minutes from Coordinated Universal Time (UTC).
  • Timezone Abbreviations: Timezones are often associated with three-letter abbreviations, such as "IST" (Indian Standard Time) or "EST" (Eastern Standard Time).
  • Daylight Saving Time (DST): Many timezones observe Daylight Saving Time, which is the practice of adjusting the clocks forward by one hour during a specific period of the year.
  • Timezone Name: A timezone is identified by a name that represents its location, such as "Asia/Kolkata" or "America/New_York"."

Usage

Run the following command to see the JSON output

go run main.go

JSON output

{
	"utc_offset": "+05:30",
	"abbr": "IST",
	"is_dst": false,
	"iana_name": "Asia/Kolkata"
}

FAQs

Package last updated on 04 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc