Skip to content

robertbasic/weeksinayear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weeks in a year

This small library calculates how many ISO weeks are there in a given year.

Install

composer require robertbasic/weeksinayear

Usage

<?php

use RobertBasic\WeaksInAYear\ISOWeeksInAYear;

$year = 2018;

$weeks = ISOWeeksInAYear::calculate($year);

echo $weeks; // 52

About

Calculates the number of ISO weeks in a given year

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages