473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Time format

Hello,

I have a Access 2k report where I need to display a list of swim times as
m:ss.ss. The table has the times stored as a number, the number of seconds
in fact. For example the value in the table 120.25 should display as
2:00.25.

I've been trying the Format() function but Format(ActualSeed_time,"m:ss.ss")
where ActualSeed_time is 104.13 dispalys as 4:12.12 rather than 1:44.13.

It is midnight here and the swim meet starts in about 31 hours so if anyone
has an answer it would be greatly appreciated.

Thanks in advance,

Brent
Jun 1 '07 #1
2 1716
On Fri, 01 Jun 2007 05:22:21 GMT, John wrote:
I've been trying the Format() function but Format(ActualSeed_time,"m:ss.ss")
where ActualSeed_time is 104.13 dispalys as 4:12.12 rather than 1:44.13.
s=104.13
print int(s/60) & ":" & s-60*int(s/60)

--
Mvh
Benny Andersen
Jun 1 '07 #2
Used this based on your formula to add and hide zeros as well as round:

IIf(Int([ActualSeed_time]/60)>0,Int([ActualSeed_time]/60) & ":","") &
IIf(([ActualSeed_time]-60*Int([ActualSeed_time]/60))>=10,Round(([ActualSeed_time]-60*Int([ActualSeed_time]/60)),2),"0"
& Round(([ActualSeed_time]-60*Int([ActualSeed_time]/60)),2))

Thanks,

Brent
"Benny Andersen" <a.*********@gmail.comwrote in message
news:ey*****************************@40tude.net...
On Fri, 01 Jun 2007 05:22:21 GMT, John wrote:
>I've been trying the Format() function but
Format(ActualSeed_time,"m:ss.ss")
where ActualSeed_time is 104.13 dispalys as 4:12.12 rather than 1:44.13.
s=104.13
print int(s/60) & ":" & s-60*int(s/60)

--
Mvh
Benny Andersen

Jun 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bruce Cushman | last post by:
My DB is Access 2000 based "possibly written in 2002" and I have to send and receive update files, ported to a UNIX server by FTP, DB unknown. The file content uses a fixed length string, zero...
1
by: seash | last post by:
H when i execute this query, my query is crashing throwing an exception "cant convert char datatype to datetime type format my query is "insert into mytable(mydate) values ('"+ varmydate+ "')...
3
by: Just D | last post by:
Did anybody see this bug? I tried to reproduce that using 12-hour and 24-hour system settings. Anyway it still causes a problem in VS2003. When I convert DateTime to a string using default...
4
by: Miguel Dias Moura | last post by:
Hello, i am just finishing a web site in ASP.net / VB using Dreamweaver MX 2004 and in all the pages i use the date/time format as follows: Date: DD-MM-YYYY Time: HH-MM (24 hours) Anyway,...
5
by: Takeadoe | last post by:
Gang - I'm generating date and time variables from scanned forms. Currently, the date and time values are as follows: 06/26/2006 and 11:30 AM. I've written VBA code to combine them into a...
5
by: Julia | last post by:
Hi I have changed my regional options on my computer to English (United States) (I used to have Swedish). I would print the value of the current time in a textbox on my asp.net page. I use this...
5
by: rouven | last post by:
Hi, i am trying to convert that time format '05:26:40 Jun 19, 2007 PDT' into mysql compatible format like YYYY-MM-DD HH:MM:SS. the code i tried was: from datetime import datetime from time...
23
by: tatata9999 | last post by:
Hi, What time zones tend to use 24 hours time format? Googling hasn't been able to answer the question. Thank you.
10
by: nussu | last post by:
Hi , i have 4 textbox's vertically , in that in first 3 textbox's i am entering values in time formati.e in HH:MM:SS .There is no am/pm after time format. for ex : a textbox has to accept only...
18
by: Dirk Hagemann | last post by:
Hello, From a zone-file of a Microsoft Active Directory integrated DNS server I get the date/time of the dynamic update entries in a format, which is as far as I know the hours since january 1st...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.