Re: Auto entering Friday's date in a field

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 44511
interpreted = N
texte = Oh, yeah damn, that's rightIt's the remainder after division of the whole numberD'oh!: P-WillOn Tuesday, October 29, 2002, at 05:31 PM, Gyuri wrote:> 11 mod 6 = 5 ( 6 * 1 + 5 = 11) > 6 mod 7 = 6 ( 7 * 0 + 6 = 6) > > anyone can check > > (if you believe micro$oft, you can even check on the microsoft calc > :)) ) > > :))))) > > Gy > > NovaDerm Skincare Science wrote: > >> Modulo is the *whole* number remainder of a division. >> >> So 10 mod 5 = 0, because 10/5=2 with remainder 0 >> >> but 11 mod 5 = 1, because 11/5=2 with a remainder of 1 >> >> and 11 mod 6 = 0, because there is no *whole* number remainder >> >> Thus 6 mod 7 = 0, because there is no whole number remainder (6/7 >> results in a fraction) >> >> It's kinda like division without decimals... >> >> -Will >> >> >> On Tuesday, October 29, 2002, at 05:03 PM, Donovan wrote: >> >>> I get Monday: >>> >>> http://216.81.241.229/modulotest.html >>> >>> I think Chris's solution is more complicated than what is stated >>> but I can't wrap my brain around it because I don't quite get what >>> the modulo does. But obiously, this code is taking us back to the >>> prior 6 days BC and calculating something based off of 7 days in >>> a week. shwew. It's time to go home. I hate you chris. ;-) >>> >>> for example. what is: >>> 6 Mod 7?? >>> >>> Anyone? >>> >>> Donovan >>> >>> >>> >>> Michael Davis wrote: >>> >>>> On Tuesday, October 29, 2002, at 02:42 PM, Donovan wrote: >>>> >>>>> [FORMAT days_to_date][MATH]{[DATE]} + (6 - >>>>> {[DATE]}%7)[/MATH][/FORMAT] >>>>> >>>>> Chris List Recipient wrote: >>>>> >>>>>> That is mod 7. So yesterday, Monday for example, you get 2. >>>>>> Add >>>>>> 6-2=4 >>>>>> days to Monday and you get next Friday. >>>>> >>>>> >>>>> What day is 00/00/0000? >>>>> >>>>> >>>> >>>> Logically, if the first day of the week is Sunday then the first >>>> date >>>> should be a sunday. To test, >>>> [FORMAT days_to_date %a][MATH]{00/00/0000}[/MATH][/FORMAT] produces >>>> Sun >>>> on my OS X server. >>>> >>>> Answer: Sunday. >>>> >>>> Mike >>>> >>> >>> -- >>> >>> --------------------------------------------------------------------- >>> -- - >>> >>> >>> --------------------------------------------------------------------- >>> -- - >>> >>> <><> Donovan Brooke <><>->ï >>> >>> --------------------------------------------------------------------- >>> -- - >>> >>> >>> --------------------------------------------------------------------- >>> -- - >>> >>> >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >>> >>> Web Archive of this list is at: http://search.smithmicro.com/ >>> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://search.smithmicro.com/ >> >> > > -- > Gyuri Ordody > Objects Online, Inc. > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Auto entering Friday's date in a field (Pat Visone 2002)
  2. Re: Auto entering Friday's date in a field (Donovan Brooke 2002)
  3. Re: Auto entering Friday's date in a field (NovaDerm Skincare Science 2002)
  4. Re: Auto entering Friday's date in a field (Gyuri 2002)
  5. Re: Auto entering Friday's date in a field (Kenneth Grome 2002)
  6. Re: Auto entering Friday's date in a field (NovaDerm Skincare Science 2002)
  7. Re: Auto entering Friday's date in a field (Donovan 2002)
  8. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  9. Re: Auto entering Friday's date in a field (NovaDerm Skincare Science 2002)
  10. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  11. Re: Auto entering Friday's date in a field (Clint Davis 2002)
  12. Re: Auto entering Friday's date in a field (Donovan 2002)
  13. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  14. Re: Auto entering Friday's date in a field (Chris List Recipient 2002)
  15. Re: Auto entering Friday's date in a field (Matthew Bohne 2002)
  16. Re: Auto entering Friday's date in a field (Dan Strong 2002)
  17. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  18. Re: Auto entering Friday's date in a field (Chris List Recipient 2002)
  19. Re: Auto entering Friday's date in a field (Donovan 2002)
  20. Re: Auto entering Friday's date in a field (Donovan 2002)
  21. Re: Auto entering Friday's date in a field (Chris List Recipient 2002)
  22. Re: Auto entering Friday's date in a field (Michael Davis 2002)
  23. Re: Auto entering Friday's date in a field (Donovan 2002)
  24. Re: Auto entering Friday's date in a field (Matthew Bohne 2002)
  25. Re: Auto entering Friday's date in a field (Clint Davis 2002)
  26. Re: Auto entering Friday's date in a field (Alex McCombie 2002)
  27. Re: Auto entering Friday's date in a field (Dan Strong 2002)
  28. Auto entering Friday's date in a field (Pat Visone 2002)
Oh, yeah damn, that's rightIt's the remainder after division of the whole numberD'oh!: P-WillOn Tuesday, October 29, 2002, at 05:31 PM, Gyuri wrote:> 11 mod 6 = 5 ( 6 * 1 + 5 = 11) > 6 mod 7 = 6 ( 7 * 0 + 6 = 6) > > anyone can check > > (if you believe micro$oft, you can even check on the microsoft calc > :)) ) > > :))))) > > Gy > > NovaDerm Skincare Science wrote: > >> Modulo is the *whole* number remainder of a division. >> >> So 10 mod 5 = 0, because 10/5=2 with remainder 0 >> >> but 11 mod 5 = 1, because 11/5=2 with a remainder of 1 >> >> and 11 mod 6 = 0, because there is no *whole* number remainder >> >> Thus 6 mod 7 = 0, because there is no whole number remainder (6/7 >> results in a fraction) >> >> It's kinda like division without decimals... >> >> -Will >> >> >> On Tuesday, October 29, 2002, at 05:03 PM, Donovan wrote: >> >>> I get Monday: >>> >>> http://216.81.241.229/modulotest.html >>> >>> I think Chris's solution is more complicated than what is stated >>> but I can't wrap my brain around it because I don't quite get what >>> the modulo does. But obiously, this code is taking us back to the >>> prior 6 days BC and calculating something based off of 7 days in >>> a week. shwew. It's time to go home. I hate you chris. ;-) >>> >>> for example. what is: >>> 6 Mod 7?? >>> >>> Anyone? >>> >>> Donovan >>> >>> >>> >>> Michael Davis wrote: >>> >>>> On Tuesday, October 29, 2002, at 02:42 PM, Donovan wrote: >>>> >>>>> [FORMAT days_to_date][math]{[date]} + (6 - >>>>> {[date]}%7)[/MATH][/FORMAT] >>>>> >>>>> Chris List Recipient wrote: >>>>> >>>>>> That is mod 7. So yesterday, Monday for example, you get 2. >>>>>> Add >>>>>> 6-2=4 >>>>>> days to Monday and you get next Friday. >>>>> >>>>> >>>>> What day is 00/00/0000? >>>>> >>>>> >>>> >>>> Logically, if the first day of the week is Sunday then the first >>>> date >>>> should be a sunday. To test, >>>> [FORMAT days_to_date %a][math]{00/00/0000}[/MATH][/FORMAT] produces >>>> Sun >>>> on my OS X server. >>>> >>>> Answer: Sunday. >>>> >>>> Mike >>>> >>> >>> -- >>> >>> --------------------------------------------------------------------- >>> -- - >>> >>> >>> --------------------------------------------------------------------- >>> -- - >>> >>> <><> Donovan Brooke <><>->ï >>> >>> --------------------------------------------------------------------- >>> -- - >>> >>> >>> --------------------------------------------------------------------- >>> -- - >>> >>> >>> ------------------------------------------------------------- >>> This message is sent to you because you are subscribed to >>> the mailing list . >>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to >>> >>> Web Archive of this list is at: http://search.smithmicro.com/ >>> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://search.smithmicro.com/ >> >> > > -- > Gyuri Ordody > Objects Online, Inc. > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ NovaDerm Skincare Science

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

show all problem (1997) Strange search... (2001) [OT] XServe OS (2007) no global [username] or [password] displayed ... (1997) OS X (2000) Can you set [index]=end+1 for [break]? (1998) Browser (agent) stats... (2004) Encrypt Decrypt URL UnURL Weirdness (2001) [sqlexecute] and ; (2005) Form Authentication (2000) show all problem (1997) is there a global includes directory? (1998) Error with [applescript] (1999) Email (1998) CommandSecurity? (1997) Attn: Power Palle (2004) WebCat2b13MacPlugIn - More limits on [include] (1997) RE: too many nested [xxx] (1997) Calculating multiple shipping... (1997) Who is John Jakovich? (1999)