Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1340

Getting the timestamp of a local file - Titanium.Filesystem.File.createTimestamp

    Details

      Description

      {html}<div><p>Im trying to get the timestamp of the creation date of a
      File.<br>
      But when im using the Function createTimestamp() im getting the
      error:</p>
      <p><em>italic</em>Type error:Cannot find function createTimestamp
      in object ti.modules.titanium.filesystem
      FileProxy@43ba7e00<em>italic</em></p>
      <p>Im reporting this issue on Android using Titanium SDK 1.3.0 and
      Android SDK 2.1.<br>
      Currently im only testing it on the SDK/Emulator and not on a real
      phone.</p>
      <p>Is something wrong in my code below?</p>
      <pre>
      <code>var file = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,filename);
      if ( file.exists() )
      { timeStampOfFile = file.createTimestamp(); }</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              marco.schierhorn(atgmail) marco.schierhorn (at gmail)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1247
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration