Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

"First Login" strange date format in DB?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-28-2003, 10:33 AM
 
pipercub pipercub is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 82
 

Default "First Login" strange date format in DB?

I'm preparing to write a script that will export customer shipping data for the FedEx system. I want to be able to export this data based on the customers first login (to avoid importing multiple addresses into FedEx). When I look at the 'xcart_customers' table, I do see the 'first_login' field, but the format is something that I don't recognize.

Example:

A customer who registered today 10/28/2003 has '1067361098' in the 'first_login' field.

I'd be willing to guess that the first two numbers in that string is the month. Beyond that I'm lost. I checked some Smarty References as well as some MySQL references, but I had no luck.

Thanks,
Piper
Reply With Quote
  #2  
Old 10-28-2003, 11:19 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

its a mysql timestamp (number of seconds since jan 1 1970) check mysql.com for more info on timestamps
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 10-28-2003, 11:52 AM
 
pipercub pipercub is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 82
 

Default

Number of seconds since Jan 1970... how do I always overlook the obvious!

Piper
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:32 AM.

   

 
X-Cart forums © 2001-2020