I believe you'll have to set it manually because the value of $HOROLOG refers to the machine running the IRIS instance. You'll need to set the $ZTIMEZONE to your local time zone.
- Log in to post comments
I believe you'll have to set it manually because the value of $HOROLOG refers to the machine running the IRIS instance. You'll need to set the $ZTIMEZONE to your local time zone.
I think this documentation can help, TimeZone
Command:
$ZDATETIME($HOROLOG,8,5)
Output:
20240425T15:29:09-03:00
The -03:00 is because I'm in Brazil, daylight saving time is automatic
If you want to know if the time is in daylight saving time or not, you can use the
$SYSTEM.Util.IsDST(TimeStap).
I saw the #Ensemble tag, so I thought you were using a Business Operation. Another thing I noticed is that you are not setting the server port that will be called.
Hi @Yone Moreno
You can try this article
Hello @Shashvati Dash
After you retrieve, you can save the file creating a %Stream.FileBinary and change the FileName to your directory in local FileSystem,
Set tStream = ##class(%GlobalCharacterStream).%New()
$$$THROWONERROR(tSC, ftp.Retrieve(file,tStream))
Set tFile = ##class(%Stream.FileBinary).%New()
Set tFile.Filename = "D:\"_file
Do tFile.WriteLine(tStream.Read())
Do tFile.%Save()
Set tSC = ftp.Logout()