Page 1 of 1

"Created Date" as XY Variable

Posted: 02 Apr 2008 02:11
by Lare2
Today I decided to give a try to the scripting feature of XYplorer. But couldn't do it because, to my surprise, the Created Date variable wasn't available for use. :(

Image

http://88.191.26.34/XYwiki/index.php/Sc ... _Variables

I'm reading the XY Variables wiki page and only see the following two.

Code: Select all

<myyyymmdd_hhnnss> 
    Modified date/time of the currently focused & selected List item 
<dyyyymmdd_hhnnss> 
    Current date/time
Am I missing something or this one is not available at all. :shock:

Re: "Created Date" as XY Variable

Posted: 02 Apr 2008 09:09
by admin
Lare2 wrote:I'm reading the XY Variables wiki page and only see the following two.

Code: Select all

<myyyymmdd_hhnnss> 
    Modified date/time of the currently focused & selected List item 
<dyyyymmdd_hhnnss> 
    Current date/time
Am I missing something or this one is not available at all. :shock:
Your shock is okay. It's missing. I curse the day when I decided to call them <myyyymmdd_hhnnss> and <dyyyymmdd_hhnnss> ... stupid! Should I go on now with <cyyyymmdd_hhnnss> ... naaah... it should be something like this:

<datem yyyymmdd_hhnnss>
<datec yyyymmdd_hhnnss>
<datea yyyymmdd_hhnnss>


I will add this in v7.10...

Re: "Created Date" as XY Variable

Posted: 02 Apr 2008 09:14
by j_c_hallgren
admin wrote:<datem yyyymmdd_hhnnss>
<datec yyyymmdd_hhnnss>
<datea yyyymmdd_hhnnss>
Is there a good reason why current date can't simply be "date" or maybe "dates" for 'system'?
Since 'datec' could be thought of as current date or created date...

Re: "Created Date" as XY Variable

Posted: 02 Apr 2008 09:17
by admin
j_c_hallgren wrote:
admin wrote:<datem yyyymmdd_hhnnss>
<datec yyyymmdd_hhnnss>
<datea yyyymmdd_hhnnss>
Is there a good reason why current date can't simply be "date" or maybe "dates" for 'system'?
Since 'datec' could be thought of as current date or created date...
I was not talking about current date, but of course you are right:
<date yyyymmdd_hhnnss> will be it.

PS: I will keep the old formats for backward compatibility, of course.

Re: "Created Date" as XY Variable

Posted: 02 Apr 2008 23:27
by Lare2
.......I will add this in v7.10...
Thank You, I'll be waiting for it :lol:

Posted: 16 May 2008 17:57
by Lare2
Was this added ?

Was reading the wiki again and still only mentions:
<myyyymmdd_hhnnss>
Modified date/time of the currently focused & selected List item
<dyyyymmdd_hhnnss>
Current date/time
If so what is the variable ?


TIA

Posted: 16 May 2008 18:01
by admin
Lare2 wrote:Was this added ?

Was reading the wiki again and still only mentions:
<myyyymmdd_hhnnss>
Modified date/time of the currently focused & selected List item
<dyyyymmdd_hhnnss>
Current date/time
If so what is the variable ?
:oops: I forgot it! I'll add it soon...

Posted: 16 May 2008 18:09
by Lare2
Don't worry. I just wanted to know if it was there or not.


/me typing this with one hand. The other one has serious problems

Posted: 16 May 2008 18:14
by admin
Lare2 wrote:Don't worry. I just wanted to know if it was there or not.


/me typing this with one hand. The other one has serious problems
hihi :P

Posted: 19 May 2008 23:39
by Lare2
Just stopped to say Thank You.

As usually you exceeded the original suggestion by adding more than requested. :)

I'm pretty sure the new variables will be of great use to others as well.


Code: Select all

+ New variables that can be used in User-Defined Commands and
      Scripting:
        <date yyyymmdd_hhnnss>      : date now
        <datem yyyymmdd_hhnnss>     : modified date of current item
        <datec yyyymmdd_hhnnss>     : created date of current item
        <datea yyyymmdd_hhnnss>     : accessed date of current item
        <srcdatem yyyymmdd_hhnnss>  : modified date of source item
        <srcdatec yyyymmdd_hhnnss>  : created date of source item
        <srcdatea yyyymmdd_hhnnss>  : accessed date of source item