Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Time synchronization

Former Member
0 Likes
343

Hi,

I'm getting two files with creation date and creation time. I've to upload this file somewhere.

But problem is " sometimes i'm getting the latest file before the older one" and older is getting updated as latest one due to time Insynchronization. Also i dont want to do the time stamps and do the validation for individual files as there are a number of files and performance will hamper.

possible solution expected

Regards,

Jyoti shankar

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
311

Hello Jyoti

From your description I assume that the two files contain the same data and, probably, have the same name (but with different creation date/time).

When you receive the files why not add the time stamp (date & time) to the file name? When you start uploading simply read all file names and sort them by filename (oldest files will be on top).

Regards

Uwe

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
312

Hello Jyoti

From your description I assume that the two files contain the same data and, probably, have the same name (but with different creation date/time).

When you receive the files why not add the time stamp (date & time) to the file name? When you start uploading simply read all file names and sort them by filename (oldest files will be on top).

Regards

Uwe