You are here

function jalalidate_convert_format in PersianTools 7

1 call to jalalidate_convert_format()
jalalidate_handler_field_date::render in includes/jalalidate_handler_field_date.inc
Render the field.

File

includes/jalalidate_lib.inc, line 62

Code

function jalalidate_convert_format($time, $format) {
  module_load_include("php", "persiantools", "includes/Date");
  $date = \Shamsi\date($format, $time);
  return $date;
}