Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: convert min to hour Post Reply Post New Topic
Author Message
darkbarf
Newbie
Newbie


Joined: 01 Apr 2008
Online Status: Offline
Posts: 1
Quote darkbarf Replybullet Topic: convert min to hour
     Posted: 01 May 2008 at 1:13pm
Hello...beginner crystal user here...

I am using crystal 9.

My field is {ticket.Status_History_Resolved_TIME}

This returns time in minutes.

How do I show this on my report in HOURS.

Do I create a new formula to do this or do i include a formula in
the report explorer formula field?

tia

IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 01 May 2008 at 10:13pm
I would just create a new formula and divide by 60.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 02 May 2008 at 1:47pm
If you need to show the time in Hours and Minutes instead of, for example 1.75 hours, try this:
 
toText(({ticket.Status_History_Resolved_TIME}\60), 0) + ":" +toText(({ticket.Status_History_Resolved_TIME} mod 60), "00")
 
Note that there is a backslash ('\')  instead of a regular "divide" slash ('/') in the first part.  This does an "integer divide" which just gives you the integer part of the result without rounding it.
 
-Dell
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum