Epoch Time - InfoPath Dev
in

InfoPath Dev

Epoch Time

Last post 01-06-2009 06:35 AM by dlgross. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-05-2009 01:38 PM

    Epoch Time

    I'm trying to save a file using a unique filename and wanted to use epoch time (unless there's a better way).  Is there a function for epoch time?
  • 01-05-2009 08:43 PM In reply to

    Are you using code to call the save operation?

    This is a C# expression to obtain the epoch time:

    int epoch = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 01-06-2009 04:55 AM In reply to

    I'm using a data connection and a rule on a button.  When the button is clicked, the rule fires calling the submit data connection sending the form to a SharePoint site.  Is there a way to use this code without signing the form?  If not, is there a function I can call in a rule to get epoch seconds?  Is there a better way for creating unique file names?
  • 01-06-2009 06:35 AM In reply to

    I use a combination of the username, the current time and some values from the form to create a meaningful and unique name

    Dean

    Dean
    Charlotte, NC
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.