at

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package at 提供类似于 at 指令的定时器

Index

Constants

View Source
const Layout = "2006-01-02 15:04:05"

Layout Parse 解析时间的格式。同时也是 Title 返回的格式。

Variables

This section is empty.

Functions

func At

At 返回只在指定时间执行一次的调度器

t 为一个正常的时间字符串,在该时间执行一次 f。若时间早于当前时间, 则在启动之后立马执行,如果 t 的值为零,则不会被执行。

Types

This section is empty.

Jump to

Keyboard shortcuts

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