Re: feature request-- [epoch]

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55519
interpreted = N
texte = John Peacock wrote: > Dan Strong wrote: > >> Sorry ahead of time if my thinking is malformed (this IS off the top >> of my head...), but intuitively, it seems to me that by knowing the >> date of the epoch ('standard' (UNIX, etc.), or your own) you could do >> anything you want... > > > Please believe me when I say that the only epoch worth discussing is > 1970-01-01T00:00:00. Well, if your on the webdna list you have to discuss WebDNA's epoch at least! ;-) find short documentation at bottom of: http://webdna.smithmicro.com/ref/pages.html?context=FormatContext.html This is the international UTC epoch (and oddly > enough the Unix one as well). In order for a "number of seconds since > some epoch" to be useful, the "epoch" must be the same for all > calculations. This number will be consistent no matter what timezone > you are in (which a floating epoch will not be). This is the trick isn't it. Are you saying it would be too difficult to add this feature because of timezones? How about leapyears and daylight savings time etc? *If* that is the case, it would be at least nice to be able to select between a couple or few of the most popular ones (at the very least being able to access the "UTC" epoch. > If you want to use "number of seconds since some specific second" > subtract the epoch from your value to produce an offset. I'm not really talking specifically about seconds since epoch (though that would be great), I am also talking about days since epoch etc. It just depends. Lets say, for that example that I posted that I want to parse out the secondssinceepoch field via XML from sourcefourge. How would I do that since their epoch is different than WebDNA's? Donovan P.S. these are issues that have come up for me in the past and I have no immediate needs for this. > > John > -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: feature request-- [epoch] ( John Peacock 2004)
  2. Re: feature request-- [epoch] ( Donovan Brooke 2004)
  3. Re: feature request-- [epoch] ( Donovan Brooke 2004)
  4. Re: feature request-- [epoch] ( "Dan Strong" 2004)
  5. Re: feature request-- [epoch] ( John Peacock 2004)
  6. Re: feature request-- [epoch] ( "Dan Strong" 2004)
  7. Re: feature request-- [epoch] ( "Nitai @ ComputerOil" 2004)
  8. Re: feature request-- [epoch] ( John Peacock 2004)
  9. Re: feature request-- [epoch] ( Donovan Brooke 2004)
  10. Re: feature request-- [epoch] ( "Nitai @ ComputerOil" 2004)
  11. Re: feature request-- [epoch] ( Donovan Brooke 2004)
  12. feature request-- [epoch] ( Donovan Brooke 2004)
John Peacock wrote: > Dan Strong wrote: > >> Sorry ahead of time if my thinking is malformed (this IS off the top >> of my head...), but intuitively, it seems to me that by knowing the >> date of the epoch ('standard' (UNIX, etc.), or your own) you could do >> anything you want... > > > Please believe me when I say that the only epoch worth discussing is > 1970-01-01T00:00:00. Well, if your on the webdna list you have to discuss WebDNA's epoch at least! ;-) find short documentation at bottom of: http://webdna.smithmicro.com/ref/pages.html?context=FormatContext.html This is the international UTC epoch (and oddly > enough the Unix one as well). In order for a "number of seconds since > some epoch" to be useful, the "epoch" must be the same for all > calculations. This number will be consistent no matter what timezone > you are in (which a floating epoch will not be). This is the trick isn't it. Are you saying it would be too difficult to add this feature because of timezones? How about leapyears and daylight savings time etc? *If* that is the case, it would be at least nice to be able to select between a couple or few of the most popular ones (at the very least being able to access the "UTC" epoch. > If you want to use "number of seconds since some specific second" > subtract the epoch from your value to produce an offset. I'm not really talking specifically about seconds since epoch (though that would be great), I am also talking about days since epoch etc. It just depends. Lets say, for that example that I posted that I want to parse out the secondssinceepoch field via XML from sourcefourge. How would I do that since their epoch is different than WebDNA's? Donovan P.S. these are issues that have come up for me in the past and I have no immediate needs for this. > > John > -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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://webdna.smithmicro.com/ Donovan Brooke

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:

Transfer of data from Invoice to thank you templates (1998) New Beta Documentation (1997) WebCat2 several catalogs? (1997) redirect from the errorsMessages.db entry (1997) WebCatalog seems to choke on large (2meg) html files. (1998) Shipping Calc - done (1998) Math Problem - Format? (1997) WCS Newbie question (1997) 2.1 bugs left over from beta cycle (1998) A little help on e-mail (HELP!!! :-) ) (1998) emailer (1997) Authorize net down? (2005) table import function crashes server (2008) Separate SSL Server (1997) necessary? (2000) Emailer (WebCat2) (1997) Shell and telnet (2002) WCS Newbie question (1997) emailer (1997) Password protect (2000)