ApexNLP icon indicating copy to clipboard operation
ApexNLP copied to clipboard

Title isn't extracted

Open sharukhmohammed opened this issue 8 years ago • 3 comments

Title is not extracted in any case. screen shot 2017-09-12 at 15 24 21 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)

sharukhmohammed avatar Sep 12 '17 09:09 sharukhmohammed

Did it work? It was able to recognise date and time, even that required the date to written in certain formats.

sourabh101 avatar Oct 07 '17 12:10 sourabh101

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);
    }

sharukhmohammed avatar Feb 28 '18 11:02 sharukhmohammed

screen shot 2018-03-04 at 12 10 11

sharukhmohammed avatar Mar 04 '18 06:03 sharukhmohammed