PHP Classes

PHP Day of the Week Name Finder: Get the name of day of the week in many languages

Recommend this page to a friend!
     
  Info   Example   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: 101 All time: 9,795 This week: 42Up
Version License PHP version Categories
m11 1.0Custom (specified...5PHP 5, Time and Date
Description 

Author

This class can get the name of a day of the week in many languages.

It determines the day of the week of any date between the years 1900 and 2999 and get its name in specific language.

Currently it can get the name of the day of the week in English, French, Spanish, Yiddish, Haoussa, Hindi, Russian, Arabic, Turkish, Traditional and Simplified Chinese, Korean, Italiano and Deutsch.

Picture of zinsou A.A.E.Moïse
  Performance   Level  
Name: zinsou A.A.E.Moïse is available for providing paid consulting. Contact zinsou A.A.E.Moïse .
Classes: 50 packages by
Country: Benin Benin
Age: 34
All time rank: 6761 in Benin Benin
Week rank: 215 Up1 in Benin Benin Equal
Innovation award
Innovation award
Nominee: 23x

Winner: 2x

Example

<?php
require_once('./DayofWeekFinder.class.php');
$date=date('l Y-m-d-h-i-s',2147483647);
    echo
'<br>'. $date;
   
$date=date('Y-m-d',2147483647);
   
$day=new dayofweekfinder(new vpdd(explode("-",$date)));
    echo
'<br>'.$day->getday("EN");
    echo
'<br>'.$day->getday("ES");
    echo
'<br>'.$day->getday("FR");
    echo
'<br>'.$day->getday("ha");
    echo
'<br>'.$day->getday("hi");
    echo
'<br>'.$day->getday("yi");
    echo
'<br>'.$day->getday("ru");
    echo
'<br>'.$day->getday("IT");
    echo
'<br>'.$day->getday("ko");
    echo
'<br>'.$day->getday("zh-CN");
    echo
'<br>'.$day->getday("tr");
    echo
'<br>'.$day->getday("AR");
    echo
'<br>'.$day->getday("DE");
    echo
'<br>'.$day->getday("HE");
    echo
'<br>'.$day->getday("aHE");
    echo
'<br>'.$day->getday("DU");
    echo
'<br>'.$day->getday("myself",array("nana","papa","mama","caca","masjid","zozo","church")).'<br>';
   
$date=date('l Y-m-d');
    echo
'<br>'. $date.'<br>';
   
$date=date('Y-m-d');
   
   
$day=new dayofweekfinder(new vpdd(explode("-",$date)));
    echo
'<br>'.$day->getday("EN");
    echo
'<br>'.$day->getday("ES");
    echo
'<br>'.$day->getday("FR");
    echo
'<br>'.$day->getday("ha");
    echo
'<br>'.$day->getday("hi");
    echo
'<br>'.$day->getday("yi");
    echo
'<br>'.$day->getday("ru");
    echo
'<br>'.$day->getday("IT");
    echo
'<br>'.$day->getday("ko");
    echo
'<br>'.$day->getday("zh-CN");
    echo
'<br>'.$day->getday("tr");
    echo
'<br>'.$day->getday("AR");
    echo
'<br>'.$day->getday("DE");
    echo
'<br>'.$day->getday("HE");
    echo
'<br>'.$day->getday("aHE");
    echo
'<br>'.$day->getday("DU");
    echo
'<br>'.$day->getday("myself",array("nana","papa","mama","caca","masjid","zozo","church")).'<br>';
   
   
   
$date='2099-12-31';
    echo
'<br>'. $date.'<br>';
   
$day=new dayofweekfinder(new vpdd(explode("-",$date)));
    echo
'<br>'.$day->getday("EN");
    echo
'<br>'.$day->getday("ES");
    echo
'<br>'.$day->getday("FR");
    echo
'<br>'.$day->getday("ha");
    echo
'<br>'.$day->getday("hi");
    echo
'<br>'.$day->getday("yi");
    echo
'<br>'.$day->getday("ru");
    echo
'<br>'.$day->getday("IT");
    echo
'<br>'.$day->getday("ko");
    echo
'<br>'.$day->getday("zh-CN");
    echo
'<br>'.$day->getday("tr");
    echo
'<br>'.$day->getday("AR");
    echo
'<br>'.$day->getday("DE");
    echo
'<br>'.$day->getday("HE");
    echo
'<br>'.$day->getday("aHE");
    echo
'<br>'.$day->getday("DU");
    echo
'<br>'.$day->getday("myself",array("nana","papa","mama","caca","masjid","zozo","church"));
?>


Details

DayofWeekFinder class is powerful class to find the day of the week in at least 16 languages(english,french,spanish,yiddish,haoussa,hindi,russia language,arabic,turkish,traditional chinese simplified chinese,Dutch,Hebrew,korean,italiano,Deutsch) without PHP calendar functions.It compute the precise day of the week for any Date from year 0 to year 99999, in the language of your choice. It provides the way to simply add your own language or your own tags for the days of the week. This package fully depends on the package of very precise date difference from the same author. See the testDayofWeekFinder.php file for example of how to use.This script is too short to provide more documentation.The name of the days of week in other languages are welcome... Contact at leizmo@gmail.com

  Files folder image Files (5)  
File Role Description
Plain text file DayofWeekFinder.class.php Class class source
Accessible without login Plain text file license.txt Lic. license
Accessible without login Plain text file readme.txt Doc. readme
Accessible without login Plain text file testDayofWeekFinder.php Example example script
Accessible without login Plain text file thanksto.txt Data thanks to new languages contributors

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
Downloadm11-2017-08-13.zip 5KB
Downloadm11-2017-08-13.tar.gz
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Very precise date difference Download .zip .tar.gz this package use one of its subclass for computing the day of week with precision without calendar functions Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:101
This week:0
All time:9,795
This week:42Up