Search code examples
ibm-doors

How can I get the Date modified from a file or stream using DXL?


I have been searching through basically all of google and the DXL reference documentation to find a function where I can get a Date object from a filename or stream object but I was unable to find anything.


Solution

  • That would be a Stat

    Declaration
        Stat create(Stream s)
        Stat create(string filename)
    
    Operation
    Returns a status handle for the stream or file name, which is used in the other Stat functions
    
    
    bool regular (Stat)
    Date modified (Stat)
    bool symbolic (Stat)
    void delete (Stat)
    Date changed (Stat)
    string user (Stat)
    int mode (Stat)
    bool directory (Stat)
    int size (Stat)
    Date accessed (Stat)