Login   Register  
PHP Classes
elePHPant
Icontem

Fortnight: Calculates the fortnight number of the year

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-04-06 (9 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 162 All time: 7,356 This week: 1,831Up
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: 32
All time rank: 3645294 in Brazil Brazil
Week rank: 1782 Up139 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:162All time:7,356
 This week:0This week:1,831Up