Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: File date

  1. #1

    Default File date

    Hi,

    when importing a text file it is no problem to get the file's name in a column but how about the date? We receive several times files with the same name and need to know the time it has been created/modified.

    Thakns a lot

    ohatnep

  2. #2

    Default

    Problem fixed. Putting this into a JS-step gives the time back:

    var thistime = Packages.java.io.File(filename.getString()).lastModified();

    where filename is a variable I pass within the data stream.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.