Ones(some times twice) a month I get an e-mail with zip file, which has price updates from a supplier.
I have to upload the file to an FTP to get it processed.
When uploading the file, it will get "timestamped" with the time and date at which time the file was uploaded.
Normally this is fine, because I mostly upload the file the same day.
Sometimes it may take 1 or 2 days before I can upload the file.
For historical purpose, I would like to have the file timestamped with the original date.
I have tried using: _FTP_Command ( $hFTPSession, "MFCT YYYYMMDDHHMMSS path")
however this command does not work or change the timestamp as I expected.
Does anyone now a way how I can change the timestamp of a FTP-file?
So what i need is a function that I pass a starting date into and it counts up to the current date. Example:
How would I do that? I found the Date.au3 in the includes but I can't find anything close to a time object like I'm used to working with in Java. I just need some $date = setDate(2009-05-30) and from there I could just add a day every time. I need this to be in the very format I stated earlier and from what I can see everytime related to date and time is automatically changed to my german locale.
€: I already tried setDate but instead it changed my PCs clock. Not quite what i was looking for
I have a question please
How to show Islamic date in Autoit
And moharam month ... etc
I hope my question is clear for you
Thanks in advance
So I get:
$aMatch Date(1499295600000) this is supposed to be 06 Jul 2017
$aMatch Date(1483574400000) this is supposed to be 05 Jan 2017
does anybody know the formula to calculate the date from the large number? It doesn't seem to be anything to do with DateToDayValue.
thanks in advance.
I am taking a Date & Time and splitting them using _DateTimeSplit, so that I can create a filename in the format: YYYYMMDD_HHMMSS.jpg. The only issue is that if the month, or day, is a two-digit number that begins with a zero (so less than 10), then the month, or day, is formatted as a single-digit number. Suggestions on how to accomplish this?
20180101 becomes 2018, 1, 1
20180303 becomes 2018, 3, 3
20180505 becomes 2018, 5, 5
20180606 becomes 2018, 6, 6
20180909 becomes 2018, 9, 9
What I want:
20180101 becomes 2018, 01, 01
20180303 becomes 2018, 03, 03
20180505 becomes 2018, 05, 05
20180606 becomes 2018, 06, 06
20180909 becomes 2018, 09, 09
Func _CreateFileNameFromDateTimeFormat($sDateThatWasChangedIntoDateTimeFormat = "2018/01/02 10:29:39") Local $aMyDate, $aMyTime, $sNewImageFileName _DateTimeSplit($sDateThatWasChangedIntoDateTimeFormat, $aMyDate, $aMyTime) _ArrayDisplay($aMyDate) _ArrayDisplay($aMyTime) ;This will become file name $sNewImageFileName = $aMyDate & $aMyDate & $aMyDate & "_" & $aMyTime & $aMyTime & $aMyTime & ".jpg" ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $sNewImageFileName = ' & $sNewImageFileName & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console EndFunc ;==>_CreateFileNameFromDateTimeFormat