Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Refactor #2

Merged
merged 34 commits into from
Oct 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9f1c0bf
Standardized translations for date names to values INCOMPLETE
omus Oct 9, 2015
88fa83e
Add processymd function
Michael-Klassen Oct 9, 2015
2cb98c9
Clean up parse functions args
Michael-Klassen Oct 9, 2015
73c3c70
Move code
Michael-Klassen Oct 9, 2015
5ffe744
Use Period types (Year, Hour, Minute, etc...)
Michael-Klassen Oct 9, 2015
70109dd
Finish incomplete changes
Michael-Klassen Oct 9, 2015
529f24b
Pull standardize branch
Michael-Klassen Oct 13, 2015
785b0a8
Make DayOfWeek a subtype of Period
Michael-Klassen Oct 13, 2015
f391c71
Call Period... constructors
Michael-Klassen Oct 13, 2015
89f62cd
Refactor parsing timezone
Michael-Klassen Oct 13, 2015
61f4506
Remove unused value
Michael-Klassen Oct 13, 2015
938f6cf
Rename mstridx to monthindex
Michael-Klassen Oct 13, 2015
d1f216b
Don't assume 6 digits is YYMMD
Michael-Klassen Oct 14, 2015
14e787d
Make res a custom type
Michael-Klassen Oct 14, 2015
5d7d21b
Abstract repeated code as function
Michael-Klassen Oct 14, 2015
9e360e3
"4.5 hours 6 minutes" should be 4:36
Michael-Klassen Oct 14, 2015
6bd3eae
Change convertyear and converthour to use Ints again
Michael-Klassen Oct 14, 2015
4c96447
Refine timezone support
Michael-Klassen Oct 14, 2015
199648e
Remove unused line
Michael-Klassen Oct 14, 2015
3162ed6
Fix locale
Michael-Klassen Oct 15, 2015
cba7d8f
Add locale tests
Michael-Klassen Oct 15, 2015
0d4fcdb
Check if tzoffset's hours or minutes are out of range
Michael-Klassen Oct 15, 2015
aa7aa04
Add local support for HMS and AMPM
Michael-Klassen Oct 15, 2015
00e88f6
Add tests for weird whitespace and tzname interaction
Michael-Klassen Oct 15, 2015
26c0d73
Change JUMP, PERTAIN, UTCZONE to be Arrays so they can be extended
Michael-Klassen Oct 15, 2015
0702519
Rename package to DateParser.jl
Michael-Klassen Oct 15, 2015
5682824
Add appveyor build status badge
Michael-Klassen Oct 15, 2015
7dda934
Add test
Michael-Klassen Oct 15, 2015
dad543c
Shorten the code
Michael-Klassen Oct 15, 2015
0276a50
Rename variables
Michael-Klassen Oct 15, 2015
a2d83de
Clean up code
Michael-Klassen Oct 16, 2015
ea93548
Try to stay within a 92 char line length
Michael-Klassen Oct 16, 2015
9060155
Rearrange tests
Michael-Klassen Oct 16, 2015
fe84f67
Add more tests
Michael-Klassen Oct 16, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ notifications:
# uncomment the following lines to override the default test script
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia -e 'Pkg.clone(pwd()); Pkg.build("DateTimeParser"); Pkg.test("DateTimeParser"; coverage=true)'
- julia -e 'Pkg.clone(pwd()); Pkg.build("DateParser"); Pkg.test("DateParser"; coverage=true)'
after_success:
- julia -e 'cd(Pkg.dir("DateTimeParser")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
- julia -e 'cd(Pkg.dir("DateTimeParser")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
- julia -e 'cd(Pkg.dir("DateParser")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
- julia -e 'cd(Pkg.dir("DateParser")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The DateTimeParser.jl package is licensed under the Mozilla Public License, Version 2.0:
The DateParser.jl package is licensed under the Mozilla Public License, Version 2.0:

> Copyright (c) 2015: Invenia Technical Computing Corporation.
>
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# DateTimeParser
# DateParser

[![Build Status](https://travis-ci.org/invenia/DateTimeParser.jl.svg?branch=master)](https://travis-ci.org/invenia/DateTimeParser.jl)
[![Build status](https://ci.appveyor.com/api/projects/status/xbyk0v7m9p369ier/branch/master?svg=true)](https://ci.appveyor.com/project/Michael-Klassen/dateparser-jl/branch/master)
[![Coverage Status](https://coveralls.io/repos/invenia/DateTimeParser.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/invenia/DateTimeParser.jl?branch=master)
[![codecov.io](http://codecov.io/github/invenia/DateTimeParser.jl/coverage.svg?branch=master)](http://codecov.io/github/invenia/DateTimeParser.jl?branch=master)


Automatic parsing of DateTime strings
Automatic parsing of date strings

## Usage

Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build_script:
# Need to convert from shallow to complete for Pkg.clone to work
- IF EXIST .git\shallow (git fetch --unshallow)
- C:\projects\julia\bin\julia -e "versioninfo();
Pkg.clone(pwd(), \"DateTimeParser\"); Pkg.build(\"DateTimeParser\")"
Pkg.clone(pwd(), \"DateParser\"); Pkg.build(\"DateParser\")"

test_script:
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"DateTimeParser\")"
- C:\projects\julia\bin\julia --check-bounds=yes -e "Pkg.test(\"DateParser\")"
Loading