Skip to content

moinjs/moin-cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Moin Cron

Cron service for the Moin Application Server.

##Events Emits time based events.

{
    type: "minute", //"quarter", "hour"
    hour: 12,//0-24
    minute: 0,//0-59
    second: 0,//0-59
    weekday: "mon",//"sun", "mon", "tue", "wed", "thu", "fri", "sat"
    weekdayNum: 0,//monday=0,...,sunday=7
    isWeekend: false,
    isWeekDay: true,
    month: 1,//1==January
    day: 1,//day of month
    year: 2016,
    lastDayOfMonth: false,
    event:"cron"
}

###Example

moin.on({
    type: "hour",
    hour: 23,
    lastDayOfMonth: true,
    event:"cron"
},()=>{
    //on every last day of the month at 23:00
})

About

timer service for the moin application server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published