Skip to content

Commit

Permalink
Merge pull request #5 from Zeutschler/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Zeutschler authored Sep 20, 2024
2 parents 1547924 + f1a0ff0 commit 028ff03
Show file tree
Hide file tree
Showing 26 changed files with 2,994 additions and 1,670 deletions.
12 changes: 12 additions & 0 deletions BACKLOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Backlog

All open issues and planned features are listed here.
Once a feature is implemented, it is moved to the CHANGELOG.md file.


## Date Types to be parsed
10. **L4Q (Last Four Quarters)**
Definition: Refers to the most recent four quarters.
Use Case: Used to look at performance over the most recent full quarters, particularly useful in companies that report quarterly.
Example: If today is September 2024, L4Q would refer to Q3 2023 through Q2 2024.
11 **L3M (Last Three Months)**
7 changes: 4 additions & 3 deletions datespanlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
from datespanlib.date_span_set import DateSpanSet

__author__ = "Thomas Zeutschler"
__version__ = "0.1.6"
__version__ = "0.1.7"
__license__ = "MIT"
VERSION = __version__


__all__ = [
"DateSpanSet",
"DateSpan",
Expand All @@ -26,8 +27,8 @@ def parse(datespan_text: str, language: str | None = "en", parser_info: parserin
Arguments:
datespan_text: The date span text to parse, e.g. 'last month', 'next 3 days', 'yesterday' or 'Jan 2024'.
language: (optional) An ISO 639-1 2-digit compliant language code for the language of the text to parse.
parser_info: (optional) A dateutil.parser.parserinfo instance to use for parsing dates contained
datespan_text. If not defined, the default parser of the dateutil library will be used.
parser_info: (optional) A dateutil.parser_old.parserinfo instance to use for parsing dates contained
datespan_text. If not defined, the default parser_old of the dateutil library will be used.
Returns:
The DateSpanSet instance contain 0 to N DateSpan objects derived from the given text.
Expand Down
152 changes: 0 additions & 152 deletions datespanlib/date_methods.py

This file was deleted.

Loading

0 comments on commit 028ff03

Please sign in to comment.