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

Updated:April 14, 2009
Size:4.71 KB

2 thoughts on “Nanakshahi PHP calender function”

Leave a Reply