Opened 10 years ago

Closed 10 years ago

#246 closed enhancement (fixed)

strToTime() does not accept AD/BC dates with fewer than 4 digits

Reported by: dstillman Owned by: simon
Priority: minor Milestone:
Component: ingester Version: 1.0
Keywords: Cc:

Description

"100 BC" returns an empty object

The exception is if "circa" or "c." is used, e.g. "c. 100 BC", in which case it puts the entire string into 'year', which may or may not be the intended behavior, since "1000 BC" puts "BC" into 'part'

Change History (2)

comment:1 Changed 10 years ago by simon

  • Status changed from new to assigned

yeah, i forgot a question mark. i'll fix this.

comment:2 Changed 10 years ago by simon

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [593]) closes #245, strToDate() should handle "st," "nd" and "rd" suffixes on days
closes #246, strToTime() does not handle AD/BC dates with fewer than 4 digits

Note: See TracTickets for help on using tickets.