ApexNLP
ApexNLP copied to clipboard
Title isn't extracted
Title is not extracted in any case.
I've used
compile 'org.threeten:threetenbp:1.3.3'
because
compile 'com.jakewharton.threetenabp:threetenabp:1.0.5'
doesn't work (Look at my other #32 issue I've added)
Did it work? It was able to recognise date and time, even that required the date to written in certain formats.
This uses a custom class LocalDateTime. It doesn't contain any Locale information.
I am currently using this snippet to convert into java.util.Date
public static Date libraryTimeToDateInMillis(LocalDateTime dateTime)
{
long epochMilli;
ZoneId phoneCurrentZone = ZoneId.systemDefault();
epochMilli = dateTime.atZone(phoneCurrentZone).toEpochSecond() * 1000;
if(epochMilli < Calendar.getInstance().getTimeInMillis() )
epochMilli = Calendar.getInstance().getTimeInMillis();
return new Date(epochMilli);
}
