I like the new function Timestamping. But there are only some examples. Is there a full list of all Timestamping commands?
What I want for example, is to set the created date of selected list items to the modified date of the same item.
Timestamping, how to use?
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Timestamping, how to use?
Code: Select all
::foreach ($curitem, <get selecteditemspathnames |>){timestamp c,$curitem, $curitem,m};Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
admin
- Site Admin
- Posts: 66304
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Timestamping, how to use?
Sammay's code works fine, but I would have expected that this would work as well:
However, it did not!
So, I just made it work.
Code: Select all
timestamp 'c', '*', , 'm';So, I just made it work.
FAQ | XY News RSS | XY X
-
Explorer
- Posts: 55
- Joined: 17 Jan 2013 17:44
Re: Timestamping, how to use?
Thank you all for your help. 
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Timestamping, how to use?
Nice.admin wrote:Sammay's code works fine, but I would have expected that this would work as well:However, it did not!Code: Select all
timestamp 'c', '*', , 'm';
So, I just made it work.
Maybe this "inline-looping" can be exposed to others SCs, eh?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
XYplorer Beta Club