整点报时

timer_point

function M:new(type)

描述

新建整点报时对象
参数

  • type number 报时类型

返回值

  • table obj

function M:set_month(month)

描述

指定几月
参数

  • month number 几月[1,12]

返回值

  • table obj

function M:set_day(day)

描述

指定月第几天
参数

  • day number 哪天[1,31]

返回值

  • table obj

function M:set_hour(hour)

描述

几时
参数

  • hour number 几时[0,23]

返回值

  • table obj

function M:set_min(min)

描述

几分
参数

  • min number 几分[0,59]

返回值

  • table obj

function M:set_sec(sec)

描述

几秒
参数

  • sec number 几分[0,59]

返回值

  • table obj

function M:set_wday(wday)

描述

周几(仅仅设置每周有效)
参数

  • wday number 周几[1,7]

返回值

  • table 对象

function M:set_yday(yday)

描述

一年第几天(仅仅设置每年第几天有效)
参数

  • yday number 周几[1,366]

返回值

  • table 对象

function M:builder(call_back, …)

描述

构建
参数

  • call_back function 回调函数

返回值

  • table 对象

整点报时
https://huahua132.github.io/2024/06/29/skynet_fly_api_word/time_extend/timer_point/
作者
huahua132
发布于
2024年6月29日
许可协议