I wasn’t born until 1975. Maybe they should change it to start from then :)
-----Original Message----- From: Andrew [mailto:am2...@gmail.com] Sent: Thursday, 16 February 2012 12:33 PM To: cfaussie Subject: [cfaussie] Re: Convert cf date to milliseconds since the epoch? 1/1/1970 is the Unix "epoch" date - it's pretty widely used. Obviously nothing interesting ever happened before then...? ;-) But seriously - I've always wondered how dates prior to that represented? As negative numbers? On Feb 16, 12:27 pm, "Steve Onnis" <st...@cfcentral.com.au> wrote: > Why 1970? That seems a little odd. > > You could do DateAdd("y", 1970, yourdate) ? > > > > > > > > -----Original Message----- > From: Andrew [mailto:am2...@gmail.com] > Sent: Thursday, 16 February 2012 12:25 PM > To: cfaussie > Subject: [cfaussie] Convert cf date to milliseconds since the epoch? > > This is sort of related to my graphing question from the other day. > > I'm using Flot and the times need to be expressed as milliseconds > since January 1, > 1970 00:00:00. > > In Java you can call .getTime() on a function to do this. Does CF > provide a simple way to either: > > * Convert a cf date to time in millis?; OR > * Convert a cf date to a java date? > > I could create a new Java Calendar object and then set the various > date parts, but before I write a wrapper function to do it that way I > figured I'd see if I was missing something obvious? > > Andrew. > > -- > You received this message because you are subscribed to the Google > Groups "cfaussie" group. > To post to this group, send email to cfaussie@googlegroups.com. > To unsubscribe from this group, send email to > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/cfaussie?hl=en. > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 9.0.0.909, Virus/Spyware Database: > 6.19260)http://www.pctools.com/ ======= > > ======= > Email scanned by PC Tools - No viruses or spyware found. > (Email Guard: 9.0.0.909, Virus/Spyware Database: > 6.19260)http://www.pctools.com/ ======= -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. ======= Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ ======= ======= Email scanned by PC Tools - No viruses or spyware found. (Email Guard: 9.0.0.909, Virus/Spyware Database: 6.19260) http://www.pctools.com/ ======= -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.