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

github.com/usysrc/timezone

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/usysrc/timezone

  • v0.0.0-20230721164514-1aa95d39ba65
  • Source
  • Go
  • Socket score

Version published
Created
Source

timezone

Is a Go-based command-line interface (CLI) app that allows users to fetch and display the current time in a specified city using its timezone.

Installation

Needs golang 1.18+ installed.

To use the timezone CLI, you need to have Go installed on your system. If you haven't installed Go, you can download it from the official Go website: https://golang.org/dl/

Once you have Go installed, you can install the Timezone CLI using the following command:

go install github.com/usysrc/timezone@latest

Usage

To use the timezone CLI, you need to provide a city name as an argument. The CLI will then fetch the current time in that city and display it in the specified 24-hour format.

Here's the basic usage of the timezone CLI:

timezone [city]

Example

Let's see an example of how to use the timezone CLI. Suppose you want to know the current time in New York:

timezone America/New_York

Output:

Current time in New York: 15:30

In this example, the timezone CLI fetched the current time in New York and displayed it in the 24-hour format.

You can also specify a custom time format using the --format flag. For example, to get the time in 12-hour format with AM/PM:

timezone --format "03:04 PM" London

Output

Current time in London: 03:30 PM

License

This project is licensed under the MIT License. See the LICENSE file for details.

FAQs

Package last updated on 21 Jul 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