Tuesday 17 September 2013

Re: [dcphp-dev] Repeating pattern incongruent to any calendar increment

On Tue, Sep 17, 2013 at 2:52 PM, Anthony D Paul <anthonydpaul@gmail.com> wrote:
Is there a numerical date system (for example, today's date might be day 12873461 from a fixed point in history) where I could simply divide by 70 and grab the remainder? Then, use the date function to convert that number into an EST date stamp?

That sounds like the unix epoch ( http://en.wikipedia.org/wiki/Unix_time ), floored to the nearest multiple of 86400. Something like time() % ( 70 * 86400 ) should give you the number of days since the last divide-by-70 day starting with 1/1/1970. It was 5+ days ago.

--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en
---
You received this message because you are subscribed to the Google Groups "Washington, DC PHP Developers Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to washington-dcphp-group+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 comments:

Post a Comment