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:
[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)