timebot

package module
v0.0.0-...-2152bd5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 4 Imported by: 0

README

timebot

Build Status Add to Slack

Convert

2018-12-06 19:00 PST
2018-12-07 12:00 KST

or vice versa and post the message on the Slack

Documentation

Index

Constants

View Source
const KST = "KST"
View Source
const PDT = "PDT"
View Source
const PST = "PST"

Variables

This section is empty.

Functions

func IsTargetMessage

func IsTargetMessage(t string) (string, bool)

IsTargetMessage checks if t contains time

func Main

func Main(token string, debug bool)

Main runs app

func ParseTime

func ParseTime(t string) (time.Time, error)

ParseTime parse time using sane defaults

func ToCaliforniaTime

func ToCaliforniaTime(t time.Time) string

ToCaliforniaTime returns using PST/PDT

func ToKoreaTime

func ToKoreaTime(t time.Time) string

ToKoreaTime returns using KST

Types

This section is empty.

Directories

Path Synopsis
cmd
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL