Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jawish/thaana_date_php
PHP 5 class that provides a drop-in function replacement/equivalent for the built-in PHP date() function to output formatted dates in Thaana/Dhivehi.
https://github.com/jawish/thaana_date_php
Last synced: 7 days ago
JSON representation
PHP 5 class that provides a drop-in function replacement/equivalent for the built-in PHP date() function to output formatted dates in Thaana/Dhivehi.
- Host: GitHub
- URL: https://github.com/jawish/thaana_date_php
- Owner: jawish
- Created: 2014-04-20T05:21:29.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-20T05:22:49.000Z (almost 11 years ago)
- Last Synced: 2024-11-20T03:53:05.103Z (2 months ago)
- Language: PHP
- Size: 105 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-maldives - Thaana date php - PHP 5 class that provides a drop-in function replacement/equivalent for the built-in PHP date() function to output formatted dates in Thaana/Dhivehi. (Table of Contents / PHP Projects)
README
Here is a PHP 5 class that provides a drop-in function replacement/equivalent for the built-in PHP date() function to output formatted dates in Thaana/Dhivehi. It follows the standard method of writing Gregorian dates in Thaana by using transliterations of the English month names and using the native Dhivehi names for the week days. It accepts all the usual formatting arguments permitted by the original date() function thus allowing the same degree of formatting freedom as the original.
The output returned from the function uses ASCII Thaana and, if needed, can then be converted to Unicode/UTF-8 by using the Thaana Conversions class. This class does not support Hijri dates (yet).
## Functions exposed
format()
Returns a Dhivehi date string formatted according to the given format string using the given integer timestamp## Usage
## License
The class is released under the Open Source MIT License.