Nanakshahi PHP calender function

Today I bring you this cool little library by Harpreet Singh Buttar which is a drop-in replacement for php’s date() and time() function.

Demo here

From the README:

Nanakshahi date function
The function’s work just like the php’s date() & time()function.
But it returns everything according to the Nanakshahi calendar.

For example
Timestamp:            1110790861
date() function returns:        Monday, 14 March 2005 – 01:01:01 AM
nanakshahi_date() function returns:    ਸੌਮਞਾਰ, 01 ਚੇਤ 537 – 01:01:01 ਸਵੇਰ

Instructions, the library, and the demo are included in the archive.

Originally from http://punjabis.netfirms.com/

download

Download:nanakshahi_calender_functions_PHP_1-0.zip
Version:0.1
Updated:April 14, 2009
Size:4.71 KB

2 Comments

  • Did you write this yourself?

  • Negative, this was found on http://punjabis.netfirms.com/ and as mentioned in the post, is by Harpreet Singh. Now that you mention it though I neglected to link to that site. I will update it with a proper link. Thanks!

Leave a comment

You must be logged in to post a comment.