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:

[sendmail] and [formvariables] (1997) [sendmail] possible modification needed... (2000) Using [Showif] tag. Mac (1997) Version Question (2000) PCS Customer submissions ? (1997) RE: Missing contexts on NT (1997) Re[2]: New syntax feedback for 4.0 (2000) form (2002) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) How to find 100 most recent additions. (1997) More news on 5.0 (2003) Summing fields (1997) Summing fields (1997) [WebDNA] lighttpd and gzip compression with webdna? (2015) Dynamic Pop up menu? (1997) WebCat2 - Getting to the browser's username/password data (1997) POST Datamissing? (1998) authorize.net CC processing (was WC on Mac OS X or Mac OS (2001) I think I found a bug (2001) Searching multiple fields (1997)