Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plabick/remote-time-action
A lightweight tool to get the current time from a remote server. Easily get consistent timestamps for GitHub workflows in your preferred timezone and format.
https://github.com/plabick/remote-time-action
actions clock ntp-client time timestamp typescript utlity workflow
Last synced: 3 months ago
JSON representation
A lightweight tool to get the current time from a remote server. Easily get consistent timestamps for GitHub workflows in your preferred timezone and format.
- Host: GitHub
- URL: https://github.com/plabick/remote-time-action
- Owner: Plabick
- Created: 2021-05-30T19:12:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T05:25:20.000Z (about 2 years ago)
- Last Synced: 2024-09-30T23:41:50.075Z (4 months ago)
- Topics: actions, clock, ntp-client, time, timestamp, typescript, utlity, workflow
- Language: TypeScript
- Homepage:
- Size: 270 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Remote Time
[![Node.js CI](https://github.com/Plabick/InternetTime/actions/workflows/CI.yml/badge.svg)](https://github.com/Plabick/InternetTime/actions/workflows/CI.yml) [![CodeQL](https://github.com/Plabick/Remote-Time-Action/actions/workflows/codeql-analysis.yml/badge.svg?branch=master&event=push)](https://github.com/Plabick/Remote-Time-Action/actions/workflows/codeql-analysis.yml) [![Trufflehog Secret Scan](https://github.com/Plabick/Remote-Time-Action/actions/workflows/trufflehog.yml/badge.svg)](https://github.com/Plabick/Remote-Time-Action/actions/workflows/trufflehog.yml)A lightweight GitHub Action to get the current time from the WorldClock time server in a variety of formats. Get consistent times for status monitoring, timestamping, and more without worrying about inconsistencies between build agents.
## Input
|Name|Description|Required?|Example|
|----|----|----|----|
|timezone|The [timezone code](https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations) to display the current time in. Case insensitive. Defaults to utc (+0)'|No|EST|## Output
|Name|Description|Example|
|----|----|----|
|dateTime|The current date and time|2021-05-30T18:38-04:00|
|dayOfTheWeek|The day of the week|Saturday|
|unixTime|The Unix epoch time, the number of seconds that have elapsed since January 1, 1970, rounded to the nearest second|1622410833|
|windowsTime|The Windows FILETIME timestamp, the number of 100-nanosecond intervals since the beginning of the year 1601|132668721308032423|
|ordinalDate|The current year and number of days since January 1st|2021-150|
|isDayLightSavingsTime|A boolean describing if the requested time reflects daylight savings time|false|## Example Usage
``` yaml
- name: Get Time
id: time
uses: Plabick/[email protected]
with:
timezone: 'EST'
- name: Display Unix Epoch Time
run: 'echo "${{steps.time.outputs.epochTime}}"'
```