Skip to content

Commit

Permalink
Merge pull request #4 from mkjunker/main
Browse files Browse the repository at this point in the history
Interpret 2-digit years as 20xx.
  • Loading branch information
md-arif-shaikh authored Oct 13, 2021
2 parents 7d6f077 + 9940a27 commit 9f8599c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion soccer-time.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

;;; Commentary:
;; Utilities for conversion of time to local time and other nice stuffs
;;
;;

;;; Code:

Expand All @@ -47,6 +47,8 @@
(day (string-to-number (nth day-position splitted-strings)))
(month (string-to-number (nth month-position splitted-strings)))
(year (string-to-number (nth year-position splitted-strings))))
(when (< year 100)
(setq year (+ year 2000)))
(list day month year)))

(defun soccer-time--get-day-name-from-date (date separator day-position month-position year-position)
Expand Down

0 comments on commit 9f8599c

Please sign in to comment.