Ejemplo n.º 1
0
        public Value DaysInMonth(IReadOnlyList <Value> args)
        {
            ArgumentsVerifier.VerifyAndThrow(args, "s", ErrorType.InvalidArgument);
            var date = DateTimeUtility.ParseDateTime(args[0].String);

            return(new Value(DateTimeUtility.GetDaysInMonth(date.Year, date.Month)));
        }