Timestamping, how to use?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Explorer
Posts: 55
Joined: 17 Jan 2013 17:44

Timestamping, how to use?

Post by Explorer »

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.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Timestamping, how to use?

Post by bdeshi »

Code: Select all

::foreach ($curitem, <get selecteditemspathnames |>){timestamp c,$curitem, $curitem,m};
should do it. you can just select some items and paste this code into the addressbar and ENTER.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 66301
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Timestamping, how to use?

Post by admin »

Sammay's code works fine, but I would have expected that this would work as well:

Code: Select all

timestamp 'c', '*', , 'm';
However, it did not!

So, I just made it work. :beer:

Explorer
Posts: 55
Joined: 17 Jan 2013 17:44

Re: Timestamping, how to use?

Post by Explorer »

Thank you all for your help. :D

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Timestamping, how to use?

Post by bdeshi »

admin wrote:Sammay's code works fine, but I would have expected that this would work as well:

Code: Select all

timestamp 'c', '*', , 'm';
However, it did not!

So, I just made it work. :beer:
Nice. :appl:
Maybe this "inline-looping" can be exposed to others SCs, eh? :ninja:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply