Python

    Table of contents
    to the older version or return to version archive.

    Combined revision comparison

    Comparing version 14:44, 3 Sep 2026 by aduarte with version 16:47, 4 Sep 2026 by aduarte.

    ...

    If you don't have Anaconda (or for some reason pip doesn't work), you can unpack sdas-1.1.tar1.0.tar.gz and run:

    ...

    TimeStamps

    To maintain compatibility with the Java and C++ libraries, the month in the SDAS TimeStamps start at 0 (January=0). You can convert to a Python datetime object with the method getAsDateTime(). For example:

    tstart = dataStruct.getTStart().getAsDateTime()
    

    You can also convert from datetime to TimeStamp with fromDateTime(). For example:

    startdate = datetime.datetime(2026, 8, 31, 16, 19)
    tstart = TimeStamp()
    tstart.fromDateTime(startdate)
    

    Version from 14:44, 3 Sep 2026

    This revision modified by aduarte (Ban)

    ...

    If you don't have Anaconda (or for some reason pip doesn't work), you can unpack sdas-1.0.tar.gz and run:

    ...

    Current version

    This revision modified by aduarte (Ban)

    ...

    If you don't have Anaconda (or for some reason pip doesn't work), you can unpack sdas-1.1.tar.gz and run:

    ...

    TimeStamps

    To maintain compatibility with the Java and C++ libraries, the month in the SDAS TimeStamps start at 0 (January=0). You can convert to a Python datetime object with the method getAsDateTime(). For example:

    tstart = dataStruct.getTStart().getAsDateTime()
    

    You can also convert from datetime to TimeStamp with fromDateTime(). For example:

    startdate = datetime.datetime(2026, 8, 31, 16, 19)
    tstart = TimeStamp()
    tstart.fromDateTime(startdate)
    
    Powered by MindTouch Core