Problem with math parser function date

(Karsten R) #1

Trying to get the file date from .gmic rsp. user.gmic the command

gmic run “e {date([0,1,2,3,4,5],\$_path_user)}”

does not respond reasonably under Windows Win 10, gmic 2.3.3

Result is -1,-1,-1,-1,-1,-1 !

Any idea?


Hmm could be an escaping problem… try this (note the forward slash):

gmic run "e {date([0,1,2,3,4,5],{/$_path_user})}"

Edit: on linux I had to put in an extra backslash too:

gmic run "e {date([0,1,2,3,4,5],{/\$_path_user})}"

(Karsten R) #3

The slash helped, thank you, #garagecoder


:thinking: I have win10 but didn’t encounter your problem.