Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Forum Post: Parsing time-stamps in HTML, performing DateTime arithmetic.

$
0
0
I'm attempting to write a synthetic transaction in Silk Performer 16.5. I need to upload a file to a server using an HTML form, and once that is complete I need to make a time-stamp and compare it to another time-stamp on a confirmation page. When I visit the confirmation page, I receive the web site's time stamp in the format of "DD-Mon-YYYY HH:MM:SS". Ideally, I need to find a way to make sure that the time-stamp taken after the script triggers the form is within 15 minutes of the time-stamp reported on the status page. A coworker suggests that I get both time-stamps in Epoch time and do simple arithmetic: If (ConfirmationTime - UploadTime 900s) { return 1; } else {return 0;} I might be able to convince my team to allow .NET code, but I'd prefer to do this natively in BDL.

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>