Re: [WebDNA] Need to convert unix date?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 104198
interpreted = N
texte = Brian Fries wrote: > As my holiday gift to the list, see the attached WebDNA function > library, "brainepoch.lib". > > This library contains WebDNA functions for working with timestamps > (seconds since WebDNA zero date or 1/1/0000) and Unix Epoch (seconds > since Unix zero date of 1/1/1970). > > The functions include: > > bepVersion - Returns version code for this library release > bepFunctions - Returns list of function names supported by this library > release > bepGMTOffset - Return Hours from GMT to local time > bepSetGMTOffset - Set value of GMT Offset > bepEpochDays - Days from WebDNA epoch (1/1/0000) to Unix epoch (1/1/1970) > bepTimestamp - Seconds since WebDNA epoch (1/1/0000) > bepTimestampDate - Return Date component of a bepTimestamp value > bepTimestampTime - Return Time component of a bepTimestamp value > bepTimestampDayRange- Return search rn value for a day or range of days > bepEpoch - Seconds since Unix epoch (1/1/1970) > bepEpochDate - Return Date component of a bepEpoch value > bepEpochTime - Return Time component of a bepEpoch value > bepEpochDayRange - Return search rn value for a day or range of days > bepCartEpoch - Generate Epoch from Cart value > bepCartGMTOffset - Generate GMT Offset from current cart value > bepCartDate - Return Date, extracted from Cart ID > bepCartTime - Return Time, extracted from Cart ID > > > The source code is fairly thoroughly documented, so you can read the > comments above each function to learn how to use them appropriately. > > One part that's not obvious is that you should first (one time only) > call the "bepSetGMTOffset" function to save your system's GMT offset > preference for future use. > > Happy holidays! > > Brian Fries > BrainScan Software > > P.S. Good folks at WebDNA corp: Feel free to post this to your downloads > section. nice one Brian, thx. Donovan -- Donovan Brooke Euca Design Center [Practical-Ethical-Efficient] www.euca.us egg.bz artglass-forum.com Associated Messages, from the most recent to the oldest:

    
  1. Fwd: [WebDNA] Need to convert unix date? (William DeVaul 2011)
  2. Re: [WebDNA] Need to convert unix date? (Donovan Brooke 2009)
  3. Re: [WebDNA] Need to convert unix date? (Donovan Brooke 2009)
  4. Re: [WebDNA] Need to convert unix date? (Marc Thompson 2009)
  5. Re: [WebDNA] Need to convert unix date? (christophe.billiottet@webdna.us 2009)
  6. Re: [WebDNA] Need to convert unix date? (Govinda 2009)
  7. Re: [WebDNA] Need to convert unix date? (Dan Strong 2009)
  8. Re: [WebDNA] Need to convert unix date? ("Terry Wilson" 2009)
  9. Re: [WebDNA] Need to convert unix date? (Dan Strong 2009)
  10. Re: [WebDNA] Need to convert unix date? (Stuart Tremain 2009)
  11. Re: [WebDNA] Need to convert unix date? (Brian Fries 2009)
  12. Re: [WebDNA] Need to convert unix date? (David Bastedo 2009)
  13. Re: [WebDNA] Need to convert unix date? (David Bastedo 2009)
  14. Re: [WebDNA] Need to convert unix date? (Bob Minor 2009)
  15. Re: [WebDNA] Need to convert unix date? (Dan Strong 2009)
  16. Re: [WebDNA] Need to convert unix date? (David Bastedo 2009)
  17. Re: [WebDNA] Need to convert unix date? (Marc Thompson 2009)
  18. Re: [WebDNA] Need to convert unix date? (David Bastedo 2009)
  19. Re: [WebDNA] Need to convert unix date? (David Bastedo 2009)
  20. Re: [WebDNA] Need to convert unix date? (Marc Thompson 2009)
  21. Re: [WebDNA] Need to convert unix date? (Dan Strong 2009)
  22. Re: [WebDNA] Need to convert unix date? (David Bastedo 2009)
  23. Re: [WebDNA] Need to convert unix date? (Dan Strong 2009)
  24. [WebDNA] Need to convert unix date? (David Bastedo 2009)
Brian Fries wrote: > As my holiday gift to the list, see the attached WebDNA function > library, "brainepoch.lib". > > This library contains WebDNA functions for working with timestamps > (seconds since WebDNA zero date or 1/1/0000) and Unix Epoch (seconds > since Unix zero date of 1/1/1970). > > The functions include: > > bepVersion - Returns version code for this library release > bepFunctions - Returns list of function names supported by this library > release > bepGMTOffset - Return Hours from GMT to local time > bepSetGMTOffset - Set value of GMT Offset > bepEpochDays - Days from WebDNA epoch (1/1/0000) to Unix epoch (1/1/1970) > bepTimestamp - Seconds since WebDNA epoch (1/1/0000) > bepTimestampDate - Return Date component of a bepTimestamp value > bepTimestampTime - Return Time component of a bepTimestamp value > bepTimestampDayRange- Return search rn value for a day or range of days > bepEpoch - Seconds since Unix epoch (1/1/1970) > bepEpochDate - Return Date component of a bepEpoch value > bepEpochTime - Return Time component of a bepEpoch value > bepEpochDayRange - Return search rn value for a day or range of days > bepCartEpoch - Generate Epoch from Cart value > bepCartGMTOffset - Generate GMT Offset from current cart value > bepCartDate - Return Date, extracted from Cart ID > bepCartTime - Return Time, extracted from Cart ID > > > The source code is fairly thoroughly documented, so you can read the > comments above each function to learn how to use them appropriately. > > One part that's not obvious is that you should first (one time only) > call the "bepSetGMTOffset" function to save your system's GMT offset > preference for future use. > > Happy holidays! > > Brian Fries > BrainScan Software > > P.S. Good folks at WebDNA corp: Feel free to post this to your downloads > section. nice one Brian, thx. Donovan -- Donovan Brooke Euca Design Center [Practical-Ethical-Efficient] www.euca.us egg.bz artglass-forum.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:

[WebDNA] [WSC] WebDNA Development Summit (2014) WebCatalog2 Feature Feedback (1996) Problems with Price field (1997) Re:What file? (1997) Sample Tearoom Search Error - Solved! (1997) no global [username] or [password] displayed ... (1997) &fieldsdir=ra truely random?? (2000) OK, here goes... (1997) Mac app. that converts e-mails (2000) Error (1997) Weird Math and SV (1997) [convertchars] HELP!!! (1999) What file? (1997) Error: Permision deny. Unable to append to 'db=^WebMerchant/Stores.db' .Ignoring [Append] context (2002) syntax question, not in online refernce (1997) Snake Bites (1997) Grepping URL-Encoded Text (2004) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) Calendar using WebCatalog? (1997) Easiest way to check for a non-alphanumeric character (part II) ? (2000)