Jump to content



Photo

how many milliseconds in 1 second ?


  • Please log in to reply
14 replies to this topic

#1 Elagizy

Elagizy

    Neowinian

  • Joined: 06-June 04
  • Location: Egypt

Posted 06 September 2005 - 11:44

hello,

I need to know 1 second = ?? milliseconds

when i use Format(Now, "ff") it seems that the maximum value is 96.

I think 1 secound = 100 milliseconds but vb.net says 96 :pinch:

Is "ff" refer to millisecond or what ?!

Thanks for any help


#2 huddy

huddy

    Xbox Gamer Tag: Huddy72

  • Joined: 02-September 04
  • Location: Hastings, UK

Posted 06 September 2005 - 11:46

1,000 milliseconds makes up one second.

Edit : How is VB saying it's 96?

#3 rokin blenda™

rokin blenda™

    Neowinian

  • Joined: 09-May 05
  • Location: London/Oxford

Posted 06 September 2005 - 11:48

the milli prefix means 10^-3, so 1 second = 1000 milliseconds

#4 vetMax™

Max™

    Neowinian Senior

  • Joined: 21-April 03
  • Location: Cornwall

Posted 06 September 2005 - 11:55

Milli means 1000.

#5 SaLiVa

SaLiVa

    The Only Bruneian Here

  • Joined: 03-July 03
  • Location: Southampton, Hampshire

Posted 06 September 2005 - 11:57

Milli means 1000.

View Post

Wrong. 10^-3 (To the power of -3)

#6 vetAntaris

Antaris

    Neowinian Senior

  • Joined: 25-January 05
  • Location: United Kingdom

Posted 06 September 2005 - 11:56

'f' when used in a style string for the Format(...) function referes to fixed numerical value, not a milli second, you want to pull that value out yourself (from the time), and calulate the milli seconds manually.

#7 vetMax™

Max™

    Neowinian Senior

  • Joined: 21-April 03
  • Location: Cornwall

Posted 06 September 2005 - 12:14

Wrong. 10^-3 (To the power of -3)

View Post

http://en.wikipedia.org/wiki/SI_prefix

Look at the table. Yes, it is 10^-3, but Milli indicates 'Thou'.

10−3  milli  m  Thousandth  0.001



#8 +mrbester

mrbester

    Be seeing you...

  • Joined: 10-April 02
  • Location: Brighton, Land of the South Saxons, Albion

Posted 06 September 2005 - 12:17

Take a closer look yourself. "Milli" means thousandth (with "kilo" meaning thousand). The "Thou" part is irrelevant in this case as it isn't a root element of the words in question...

#9 OP Elagizy

Elagizy

    Neowinian

  • Joined: 06-June 04
  • Location: Egypt

Posted 06 September 2005 - 12:23

1,000 milliseconds makes up one second.

Edit : How is VB saying it's 96?

View Post


1:      Enc1.Text = Format(Now, "ff")
        If Enc1.Text = 96 Then Exit Sub Else GoTo 1

The maximum value which i reached to exit sub is 96

if "ff" is not a millisecond, so what is it ?

#10 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 86
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 06 September 2005 - 12:32

http://msdn.microsof...dateformats.asp

F Displays fractions of seconds. For example ff will display hundredths of seconds, whereas ffff will display ten-thousandths of seconds. You may use up to seven f symbols in your user-defined format. Use %f if this is the only character in your user-defined numeric format.

#11 OP Elagizy

Elagizy

    Neowinian

  • Joined: 06-June 04
  • Location: Egypt

Posted 06 September 2005 - 12:35

http://msdn.microsof...dateformats.asp

F  Displays fractions of seconds. For exampleff> will display hundredths of seconds, whereas ffff will display ten-thousandths of seconds. You may use up to seven f symbols in your user-defined format. Use %f if this is the only character in your user-defined numeric format.

View Post

WOW, Thanks alot for this link(Y)), it really helps.

Thanks all for your help:))

#12 vetmarkjensen

markjensen

    Linux noob since Red Hat 5.1

  • Joined: 02-October 03
  • Location: Middle Tennessee
  • OS: GNU/Linux
  • Phone: Android and iPhone

Posted 06 September 2005 - 12:35

Google: For all your conversion needs. (Y)
http://www.google.co...in milliseconds

#13 OP Elagizy

Elagizy

    Neowinian

  • Joined: 06-June 04
  • Location: Egypt

Posted 06 September 2005 - 12:37

Google:  For all your conversion needs. (Y)
http://www.google.co...in milliseconds

View Post


OMG :woot: , GOOOOGLE ROCKS :rofl:

#14 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 86
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 06 September 2005 - 12:40

WOW, Thanks alot for this link (Y), it really helps.

View Post

Yeah, crazy huh --> who would think to look in the documentation for info :rolleyes:

#15 SaLiVa

SaLiVa

    The Only Bruneian Here

  • Joined: 03-July 03
  • Location: Southampton, Hampshire

Posted 08 September 2005 - 12:52

http://en.wikipedia.org/wiki/SI_prefix

Look at the table. Yes, it is 10^-3, but Milli indicates 'Thou'.

View Post

One thousandth of a metre. Yes, you just proved it yourself.
I take Physics and we have to deal with these conversions everyday. It defines whether you get a mark or not in any question, and every mark counts...