Re: Logical looking dates reporting..

2014-08-09 Thread Phillip Vector

Thank you. :)


On Sat, Aug 9, 2014 at 9:40 AM, John M Bliss  wrote:

>
> http://cflib.org/udf/longTime
>
>
> On Sat, Aug 9, 2014 at 8:40 AM, Phillip Vector 
> wrote:
>
> >
> > So I want to display the time between 2 events (down to the second). I
> have
> > the following code..
> >
> >  > Leaderboard.CreatedOn, Leaderboard.DateOfDeath)# + 18>
> >  > Leaderboard.CreatedOn, Leaderboard.DateOfDeath)#>
> >  > Leaderboard.CreatedOn, Leaderboard.DateOfDeath)#>
> >
> > #Years# Years, #Months# months and #Days# days
> >
> > However, as you may have noticed, it produces an output like this..
> >
> > 0 Years, 5 months and 174 days
> >
> > What I'm hoping it would say is something like
> >
> > 0 Years, 5 months and 24 days
> >
> > (but I would need to then figure out if the months between it contain 30
> or
> > 31 (or 29 or leap year 28)..
> >
> > Does anyone have something already coded before I try to tackle this? I'd
> > hate to invent the wheel and my Google Fu doesn't come up with anything
> > (Then again, it is 5:40am where I am and I just woke up). :)
> >
> >
> >
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359101
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Logical looking dates reporting..

2014-08-09 Thread John M Bliss

http://cflib.org/udf/longTime


On Sat, Aug 9, 2014 at 8:40 AM, Phillip Vector 
wrote:

>
> So I want to display the time between 2 events (down to the second). I have
> the following code..
>
>  Leaderboard.CreatedOn, Leaderboard.DateOfDeath)# + 18>
>  Leaderboard.CreatedOn, Leaderboard.DateOfDeath)#>
>  Leaderboard.CreatedOn, Leaderboard.DateOfDeath)#>
>
> #Years# Years, #Months# months and #Days# days
>
> However, as you may have noticed, it produces an output like this..
>
> 0 Years, 5 months and 174 days
>
> What I'm hoping it would say is something like
>
> 0 Years, 5 months and 24 days
>
> (but I would need to then figure out if the months between it contain 30 or
> 31 (or 29 or leap year 28)..
>
> Does anyone have something already coded before I try to tackle this? I'd
> hate to invent the wheel and my Google Fu doesn't come up with anything
> (Then again, it is 5:40am where I am and I just woke up). :)
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359100
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Logical looking dates reporting..

2014-08-09 Thread Phillip Vector

I stand corrected. That only calculated up to days.. I need months and
years (and not just the calculation, but actual days and months..

Grrr... Going to get some wake up juice. :)


On Sat, Aug 9, 2014 at 6:40 AM, Phillip Vector 
wrote:

> Found this..
>
> http://www.cflib.org/index.cfm?event=page.udfbyid&udfid=377
>
> This seems to work. Thanks anyway. :)
>
>
> On Sat, Aug 9, 2014 at 5:40 AM, Phillip Vector 
> wrote:
>
>> So I want to display the time between 2 events (down to the second). I
>> have the following code..
>>
>> > Leaderboard.CreatedOn, Leaderboard.DateOfDeath)# + 18>
>> > Leaderboard.CreatedOn, Leaderboard.DateOfDeath)#>
>> > Leaderboard.CreatedOn, Leaderboard.DateOfDeath)#>
>>
>> #Years# Years, #Months# months and #Days# days
>>
>> However, as you may have noticed, it produces an output like this..
>>
>> 0 Years, 5 months and 174 days
>>
>> What I'm hoping it would say is something like
>>
>> 0 Years, 5 months and 24 days
>>
>> (but I would need to then figure out if the months between it contain 30
>> or 31 (or 29 or leap year 28)..
>>
>> Does anyone have something already coded before I try to tackle this? I'd
>> hate to invent the wheel and my Google Fu doesn't come up with anything
>> (Then again, it is 5:40am where I am and I just woke up). :)
>>
>
>


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359099
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Logical looking dates reporting..

2014-08-09 Thread Phillip Vector

Found this..

http://www.cflib.org/index.cfm?event=page.udfbyid&udfid=377

This seems to work. Thanks anyway. :)


On Sat, Aug 9, 2014 at 5:40 AM, Phillip Vector 
wrote:

> So I want to display the time between 2 events (down to the second). I
> have the following code..
>
>  Leaderboard.CreatedOn, Leaderboard.DateOfDeath)# + 18>
>  Leaderboard.CreatedOn, Leaderboard.DateOfDeath)#>
>  Leaderboard.CreatedOn, Leaderboard.DateOfDeath)#>
>
> #Years# Years, #Months# months and #Days# days
>
> However, as you may have noticed, it produces an output like this..
>
> 0 Years, 5 months and 174 days
>
> What I'm hoping it would say is something like
>
> 0 Years, 5 months and 24 days
>
> (but I would need to then figure out if the months between it contain 30
> or 31 (or 29 or leap year 28)..
>
> Does anyone have something already coded before I try to tackle this? I'd
> hate to invent the wheel and my Google Fu doesn't come up with anything
> (Then again, it is 5:40am where I am and I just woke up). :)
>


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359098
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Logical looking dates reporting..

2014-08-09 Thread Phillip Vector

So I want to display the time between 2 events (down to the second). I have
the following code..





#Years# Years, #Months# months and #Days# days

However, as you may have noticed, it produces an output like this..

0 Years, 5 months and 174 days

What I'm hoping it would say is something like

0 Years, 5 months and 24 days

(but I would need to then figure out if the months between it contain 30 or
31 (or 29 or leap year 28)..

Does anyone have something already coded before I try to tackle this? I'd
hate to invent the wheel and my Google Fu doesn't come up with anything
(Then again, it is 5:40am where I am and I just woke up). :)


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359097
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm