Declined
Last Updated: 15 Nov 2019 07:32 by ADMIN
Raymond
Created on: 13 Aug 2019 08:45
Type: Feature Request
0
textWizard: convert epoch to human-readable date.

It would be great to have an option in the textWizard to convert an epoch date to a human-readable date.

Like: 1530417600 to "GMT: Tuesday 13 August 2019 08:32:48"

 

It would be great to have 2 options:

- convert epoch time to human readable time (GMT timezone)

- convert epoch time to human readable time (Local timezone)

 

Thanks for creating one of the most useful tools ever!

1 comment
Eric
Posted on: 14 Aug 2019 03:17

Click Rules > Customize Rules. Scroll to just inside class Handlers and add the following block:

   public static ToolsAction("E&poch Analyzer")
function showTime() {
var s = FiddlerScript.prompt("Enter an Epoch time", DateTimeOffset.Now.ToUnixTimeSeconds(), "Epoch Analyzer");
try {
var sec= Int64.Parse(s);
var dt: DateTimeOffset = DateTimeOffset.FromUnixTimeSeconds(sec); 
FiddlerScript.alert("Unix Epoch time "+s+" is:\n\tLocal:\t"+dt.ToLocalTime().ToString()+"\n\tGMT:\t"+dt.ToString());
}
catch (e){ FiddlerScript.alert("Invalid input\n"+e);}
}

 

Save the file. Click Tools > Epoch Analyzer.