Skip to content

malchikovma/studying-week

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StudyingWeek class

Description

Some education institutions use two week schedule system. This class calculates is given date the first or second studying week.

Example

We pass time in Unix-epoch seconds in the constructor.

use StudyingWeek\StudyingWeek;

$week = new StudyingWeek(strtotime('2020-07-11'));
$isEven = $week->isEven(); // or $week->isOdd();

Notice

Calculation algorithm may vary depend on country/institution. Feel free to fork and modify it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages