public static int idate(Context ctx, string format)
{
if (format == null || format.Length != 1)
//PhpException.InvalidArgument("format");
throw new ArgumentException();
return GetDatePart(format[0], System_DateTime.UtcNow, PhpTimeZone.GetCurrentTimeZone(ctx));
}