Quantcast
Channel: All Open Tickets - Tera Term on OSDN
Viewing all articles
Browse latest Browse all 2128

get yesterday and 2 days back date (datestr - today) - Tera Term Ticket #45238 on OSDN

$
0
0

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_mudronVerantwortlicher:(Keine)
Priorität:5 - MittelMeilenstein:(Keine)
Typ:SupportanfragenSchweregrad:5 - Mittel
Komponente:(Keine)Status:Offen
LösungKeine

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.


Viewing all articles
Browse latest Browse all 2128