/*
   Gregorian to Islamic date conversion

   from  http://www.fourmilab.ch/documents/calendar/
   see   https://www.ibm.com/developerworks/community/blogs/HermannSW/
                 entry/gregorian_to_islamic_date_conversion
*/
var cal = require("calendar");

session.output.write(
  cal.gregorian_to_islamic(new Date()) + "\n"
);