PHP Classes

Fortnight: Calculates the fortnight number of the year

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 169 This week: 1All time: 8,846 This week: 560Up
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: 42
All time rank: 4231345 in Brazil Brazil
Week rank: 416 Up36 in Brazil Brazil Up

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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:169
This week:1
All time:8,846
This week:560Up