Hello.
I am trying to call system.date.now() from script console and the return is that system.data do not has .date at all.
Hello.
I am trying to call system.date.now() from script console and the return is that system.data do not has .date at all.
now = system.date.now()
print now
[quote=“markdobtech”]
now = system.date.now()
print now
[/quote]
I had thought the same, but in 7.8, it returns a date either way.
I’m going with the local jython copy getting corrupted.
Try deleting the {userName}.ignition folder and relaunch the designer. A fresh copy should then download to your PC.
I tryed to delete .ignition and reload the designer but still fail.
Also I try other system.data.* functions and all returns the same error.
My Gateway version is 7.8.0
I have no idea why your system.date.* functions don’t work, but you can use java’s Date type directly as an alternative to system.date.now():from java.util import Date
now = Date()
Yes, this is what i did, but if the manual said that system.date.now() works i do not know why it not works…
system.date.* was added for 7.8.1, so you won’t have it available in 7.8.0.