
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
github.com/usysrc/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.
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
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]
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
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
Unknown package
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.