Documentation

IsAmPmMode

IsAmPmMode ()

The function is used to set and print 12-hour time format. Returns true on success.

Examples of use

if (IsAmPmMode())
{
  echo date("g:i a");
}
  else
{
  echo date("H:i");
}


© «Bitrix24», 2001-2024
Up