Visokio website     Downloads     Video tutorials     KnowledgeBase  
Timestamp in File output - Visokio Forums
Timestamp in File output
  •     Mees July 30, 2011 5:24AM
    in the file output in DM you can add a timestamp to a filename.
    However it seems that a date is possible, but a time is not.
    if it is possible what should be the notation?
    we have tried: d-MMM-yyyy H:mm:ss

    Thanks
  • 9 Comments
  •     steve July 31, 2011 9:15AM
    What do you see when you use that format? It could be that the colon ":" character is causing problems, since this is an invalid character in windows filesystems. Omniscope should handle this case and either convert or show an error - we'll check this.

    Try "d-MMM-yyyy H-mm-ss" instead. Or, if you want a format that appears in chronological order in Explorer, use "yyyy-MM-dd HH-mm-ss".
  •     Mees July 31, 2011 4:47PM
    Thanks Steve.
    d-MMM-yyyy H-mm-ss works
  •     Mees August 1, 2011 7:21AM
    Steve, perhaps good idea to add a short comment line in the DM block that you need to make use of the '-' in stead of the ':' as mentioned on the visokio website.
  •     steve August 1, 2011 8:45AM
    It should do this already; we're investigating.
  •     chris August 1, 2011 10:53AM
    If you enter a date format that cannot be exported as a filename the following error should be shown:

    The filename timestamp contains one or more invalid characters: " : \ / ? * > | Please adjust the format so that these characters are removed.

    Do you see this error message?
  •     steve August 2, 2011 8:38AM
    Update: we have changed the default timestamp format to be "yyyy-MM-dd HH-mm-ss-SSS", i.e. filename-friendly dates & times with millisecond precision.
  •     JamesDutton March 22, 2012 3:55AM
    @steve - do you guys have guidelines for what the different combinations of datestamps can output? I've been playing with this today - based on what I thought I understood from Excel and been getting some strange dates output. For example using mm (apparent random number) gets me a very different output from MM (03).
  •     chris March 22, 2012 5:02AM
    Hi,

    "mm" gives you minutes and "MM" gives you hours. This is why you get different results.

    The following page provides a guidelines on how to use date formats:

    http://www.visokio.com/dates-and-times
  •     JamesDutton March 22, 2012 5:14AM
    Thanks @chris

Welcome!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership