Differences
This shows you the differences between the selected revisions of the page.
2012-02-18 | 2012-02-18 | ||
jscript example (martin) | wrap stamp init expr (martin) | ||
Line 233: | Line 233: | ||
var today = new Date(); | var today = new Date(); | ||
- | var stamp = today.getFullYear() + (today.getMonth() + 1 < 10 ? "0" : "") + (today.getMonth() + 1) + (today.getDate() < 10 ? "0" : "") + today.getDate(); | + | var stamp = |
+ | ···today.getFullYear() + | ||
+ | ··(today.getMonth() + 1 < 10 ? "0" : "") + (today.getMonth() + 1) + | ||
+ | ··(today.getDate() < 10 ? "0" : "") + today.getDate(); | ||
var fileName = "export_" + stamp + ".txt"; | var fileName = "export_" + stamp + ".txt"; | ||
var remotePath = "/home/user/sysbatch/" + fileName; | var remotePath = "/home/user/sysbatch/" + fileName; |