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

localtime() public static method

The localtime() function returns an array identical to that of the structure returned by the C function call. Current time is used, regular numericaly indexed array is returned.
public static localtime ( Context ctx ) : PhpArray
ctx Pchp.Core.Context
return Pchp.Core.PhpArray
        public static PhpArray localtime(Context ctx)
        {
            return GetLocalTime(PhpTimeZone.GetCurrentTimeZone(ctx), System_DateTime.UtcNow, false);
        }

Same methods

DateTimeFunctions::localtime ( Context ctx, int timestamp ) : PhpArray
DateTimeFunctions::localtime ( Context ctx, int timestamp, bool returnAssociative ) : PhpArray