ForwardWidgets
Widgets for Douban and Trakt watchlists plus personalized recommendations, live TV streaming including PlutoTV, Yatu ra…
🕰️ Synchro: Timezone-typesafe date and time framework for Go. 🌟 Star to support our work!
git clone https://github.com/Code-Hex/synchro.gitCode-Hex/synchroThis is inspired by Rust chrono
time packageTo install Synchro, use go get:
go get github.com/Code-Hex/synchro
To use Synchro, import it in your Go code:
package main
import (
"fmt"
"github.com/Code-Hex/synchro"
"github.com/Code-Hex/synchro/tz"
)
func main() {
// The current UTC time is fixed to `2023-09-02 14:00:00`.
utcNow := synchro.Now[tz.UTC]()
fmt.Println(utcNow)
jstNow := synchro.Now[tz.AsiaTokyo]()
fmt.Println(jstNow)
// Output:
// 2009-11-10 23:00:00 +0000 UTC
// 2009-11-11 08:00:00 +0900 JST
}
https://go.dev/play/p/Ql3CM7NLfj0
Please refer to the numerous usage examples on GoDoc for reference.
We also have a wide range of very useful utilities!!
If you have a feature request, please open an issue. It would be great if you could provide relevant examples or links that could be helpful.
Change allows you to specify the date and time components you want to change and make modifications.Advance allows you to specify the date and time components you want to increment and make modifications.Contributions to Synchro are welcome!
To contribute, please fork the repository and submit a pull request.
Synchro is licensed under the MIT License. See LICENSE for more information.
more like this
Widgets for Douban and Trakt watchlists plus personalized recommendations, live TV streaming including PlutoTV, Yatu ra…
YiMao · 云海求片助手 — 双核心 Telegram 影视求片机器人。订阅模式:TMDB 智能搜索一键订阅 / 趣味求片模式:AI 生成五层地狱闯关,通关解锁优先求片。深度集成 MoviePilot + Emby/Jellyfin。…
search projects, people, and tags