Skip to content

A simple http server that gives you current time in ISO datetime format

Notifications You must be signed in to change notification settings

kennhung/time-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

time-service

A simple http server that gives you current time in RFC3339 format.

How to use

$ go build main.go
$ ./main

Example

$ curl http://localhost:3000
{"date_time":"2024-04-16T00:16:40+08:00"}

Configuration

You can configure time-service using environment variable.

  • PORT: the port that http server should listen to

About

A simple http server that gives you current time in ISO datetime format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published