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 BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com
Associated Messages, from the most recent to the oldest:
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 BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-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:
Assigning new CART number (1997)
Round up prices (2000)
[OT] Stuff (2002)
[append] vs. [appendfile] delta + question? (1997)
Document Contains No Data! (1997)
Cross-platform file names? (2000)
pc (1997)
Caching problem... (2000)
WebCat2 beta 11 - new prefs ... (1997)
Pass a form (2003)
listfiles-looking for slick solution (1997)
WC Database Format (1997)
Price problem (1997)
[returnraw] and form variables (1998)
problems with WebCat-Plugin (1997)
RE: Formulas.db + Users.db (1997)
Secured Order Forms (1998)
Cart questions (1997)
OT: Variables in printed URL (2007)
MOOOOOO (2000)