get yesterday and 2 days back date (datestr - today)
Eröffnet am: 2022-07-26 16:46
Letztes Update: 2022-07-26 18:50
Auswertung: | reneo_mudron | Verantwortlicher: | (Keine) |
---|---|---|---|
Priorität: | 5 - Mittel | Meilenstein: | (Keine) |
Typ: | Supportanfragen | Schweregrad: | 5 - Mittel |
Komponente: | (Keine) | Status: | Offen |
Lösung | Keine |
Einzelheiten
Hello,
is there a way to request the yesterday date in teraterm?
we want to send a command 'A date <yesterday 00:00:00>,<now>'
we are able to get today 00:00:00 using datestr. And so the date for today, but we wish to set the start time to yesterday.
Any idea?
StartTime = datestr EndTime = datestr strconcat StartTime ' 00:00:00' strconcat EndTime ' ' strconcat EndTime timestr pause 3 ;send all data from 00:00 to enddate for today ;sendln 'A date StartTime,EndTime' ;sendln StartTime ;sendln EndTime Command = 'A date ' strconcat Command StartTime strconcat Command ',' strconcat Command EndTime sendln Command ;sendln 'A date 2021-11-16 00:00:00,2021-11-17 12:30:00' pause 3 sendln 'End Command Quit'
Letzte Aktualisierung für dieses Ticket
2022-07-26 18:50 Aktualisiert von: nmaya
- Details Updated
Kommentar
Split the start date string, and calc year, month and day of yesterday, and concat them.