Skip to content

Different timestamp formats parsing issue #89

Open
@nhrG

Description

@nhrG

Hi, I am trying to parse a sas file with timestamps, but I am unable to get correct time part of the timestamp. I was checking the source code, and for every timestamp format, column schema object return DATETIME_FORMAT_STRINGS.DATETIME. I also have a date with that format, but even that dates time part is parsed incorrectly. Attached are the used csv and created sas7bdat file via sas studio.
Issue
My Date - 13 May 1995 08:30:12
Date object from readNext() - Sat May 13 14:00:12 IST 1995
Parsed object as per format - 13May1995:14:00:12.00

How to recreate this bug?

  • Parso v2.0.13
  • Use timeSimple.sas7bdat
  • Simple reader, no encoding
  • Date formatter code
    new SimpleDateFormat(format).format((Date) object)

The timestamp is created correctly from imported csv, see screenshot
issueTimestamps

Files
timeSimple.zip

Version.
Parso - 2.0.13
Java - v8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions