Pchp.Library.DateTimeFunctions.idate C# (CSharp) Method

idate() public static method

Returns a part of current time.
public static idate ( Context ctx, string format ) : int
ctx Pchp.Core.Context Current runtime context.
format string Format definition for output.
return int
        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));
        }

Same methods

DateTimeFunctions::idate ( Context ctx, string format, int timestamp ) : int