PHP Classes

Fortnight: Calculates the fortnight number of the year

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 169 All time: 8,857 This week: 660Up
Version License Categories
fortnight 1.0FreewareTime and Date
Description 

Author

This is a simple class to determine the fortnight number of a given date of the year.

The fortnight number is calculated based on the number of days since January 1st, and not only a simple checking if the date is between days 1 to 15 or 16 to 31 and then multiplying by the month number.

In (brazilian) portuguese:

Esta é uma classe simples para o calcular do número da quinzena do ano.

O cálculo da quinzena é feito a partir do número de dias transcorridos a partir de 1º de janeiro, e não simplesmente verificando se o dia está entre 1 e 15 ou 16 e 31 (quinzena 1 ou 2 do mês) multiplicado pelo número do mês.

Picture of Rafael Costa
Name: Rafael Costa <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: 43
All time rank: 4236346 in Brazil Brazil
Week rank: 170 Up12 in Brazil Brazil Up

  Files folder image Files (1)  
File Role Description
Plain text file fortnight.class.php Class Base class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:169
This week:0
All time:8,857
This week:660Up