Jump to content

Task time options


-RAW-

Recommended Posts

What you could do, if the day of week actually matters, is set it to run once a day and check manually in the code.

However, there's the problem of locale affecting the actual day names, so the only way to get a solid check after digging seems to be something like:

$dayOfWeek = \jddayofweek( \unixtojd( ) );
if($dayOfWeek === 0)
{
//it's sunday.
}

please note, this is untested, just what I was able to find digging through the php manual looking for a way to determine the day of the week without the locale coming into play.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...