You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ponymail.apache.org by sebbASF <gi...@git.apache.org> on 2016/12/09 01:34:43 UTC

[GitHub] incubator-ponymail issue #279: Enh: simplify date range calculations spannin...

GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/279

    Enh: simplify date range calculations spanning a month

    The date range calculations currently work out the end of the month. This involves leap-year calculations and a table of days in each month.
    
    It would be simpler to express the date range as
    gte=YYYY/MM/01 00:00:00
    lt=YYYY'/MM'/01 00:00:00
    where MM' is MM+1 unless MM=12 etc.
    
    Also, rather than using the string date field, it would likely be more efficient to use the epoch.

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ponymail issue #279: Enh: simplify date range calculations spannin...

Posted by sebbASF <gi...@git.apache.org>.
Github user sebbASF commented on the issue:

    https://github.com/apache/incubator-ponymail/issues/279
  
    This affects mbox.lua and stats.lua which both have copies of the code


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-ponymail issue #279: Enh: simplify date range calculations spannin...

Posted by sebbASF <gi...@git.apache.org>.
Github user sebbASF commented on the issue:

    https://github.com/apache/incubator-ponymail/issues/279
  
    Using the epoch would be tricky for relative dates such as "less than 2 months ago" which are currently handled by the ES database.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---