summaryrefslogtreecommitdiffstats
path: root/jrnl
diff options
context:
space:
mode:
authorZhizhen He <hezhizhen.yi@gmail.com>2023-04-23 04:19:15 +0800
committerGitHub <noreply@github.com>2023-04-22 13:19:15 -0700
commit0b64d50f4b6de6ec65c50573010ebea7cb6c6492 (patch)
tree3fac3129f724d2d9d835edfe73cfe1ea51ce47ba /jrnl
parentea6a5da3eb59dea66a5a30386bc6a066707dc59a (diff)
fix typo (#1718)
Diffstat (limited to 'jrnl')
-rw-r--r--jrnl/args.py4
-rw-r--r--jrnl/time.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/jrnl/args.py b/jrnl/args.py
index 5c0283c9..9b7dafe7 100644
--- a/jrnl/args.py
+++ b/jrnl/args.py
@@ -331,7 +331,7 @@ def parse_args(args: list[str] = []) -> argparse.Namespace:
nargs="?",
metavar="DATE",
const="now",
- help="Change timestamp for seleted entries (default: now)",
+ help="Change timestamp for selected entries (default: now)",
)
exporting.add_argument(
"--format",
@@ -360,7 +360,7 @@ def parse_args(args: list[str] = []) -> argparse.Namespace:
"--tags",
dest="tags",
action="store_true",
- help="Alias for '--format tags'. Returns a list of all tags and number of occurences",
+ help="Alias for '--format tags'. Returns a list of all tags and number of occurrences",
)
exporting.add_argument(
"--short",
diff --git a/jrnl/time.py b/jrnl/time.py
index f91d490c..514d94f2 100644
--- a/jrnl/time.py
+++ b/jrnl/time.py
@@ -34,7 +34,7 @@ def parse(
elif isinstance(date_str, datetime.datetime):
return date_str
- # Don't try to parse anything with 6 or less characters and was parsed from the existing journal.
+ # Don't try to parse anything with 6 or fewer characters and was parsed from the existing journal.
# It's probably a markdown footnote
if len(date_str) <= 6 and bracketed:
return None
@@ -83,7 +83,7 @@ def parse(
date = datetime.datetime(*date[:6])
# Ugly heuristic: if the date is more than 4 weeks in the future, we got the year wrong.
- # Rather then this, we would like to see parsedatetime patched so we can tell it to prefer
+ # Rather than this, we would like to see parsedatetime patched so we can tell it to prefer
# past dates
dt = datetime.datetime.now() - date
if dt.days < -28 and not year_present: