I thought you were indicating there was a specific risk in implementing the usual algorithm and I wanted to know what it was.
The gmtime-timegm method you give is a neat trick but I can't see any good reason to prefer it. It really needs code to catch years outside the epoch range, or at a minimum a comment to highlight it's limitation.
--
Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho
In reply to Re: Re: Re: Re: Last day of the month. Any shorter
by greenFox
in thread Last day of the month. Any shorter
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |