Member Panel


Sponsors and Ads

Live Tag Cloud

PC Forum PC Help Forum » Software » Office Software » SQL strftime dates & Excell

Office Software - SQL strftime dates & Excell posted in the Software forums; First apologies if this is off topic/website. Exporting a table from a "mySQL" database into Excel in one of the fields I have the interger 1313046000 which I know translates ...

JOIN US NOW to remove these Ads

pc help forum number one in the search engines
Post New Thread  Reply
  #1  
Old 08-11-2006
elpmek's Avatar
Silver Member
 
Join Date: Feb 2006
Location: Gloucestershire
Posts: 167
PC Experience: Experienced
elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page
Cool SQL strftime dates & Excell

First apologies if this is off topic/website.

Exporting a table from a "mySQL" database into Excel in one of the fields I have the interger 1313046000 which I know translates into Thursday, 11th August 2011 08:00hrs.

I done some internet searching & believe the interger is a "strftime" number but I can't find a way to translate it.

Is there some easy way, in Excel, to tranlate the interger into meaningful data.

Please note I am only capable of exporting the table and so can't do anything to it before export.

Thanks in advance


  #2  
Old 08-11-2006
Hengis's Avatar
PCHF Founder & Owner
My PC
 
Join Date: Jan 2004
Location: Newbury, England
Posts: 10,792
PC Experience: Always learning
Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page
Send a message via Skype™ to Hengis
Default

I hope you get help on this...not my area though, sorry.

I take it that you are familiar with this: http://www.docs.hp.com/en/B2355-90695/strftime.3C.html


__________________
> Pre-Work > System File Checker
> Did we help you? If we did, please consider Donating
  #3  
Old 08-11-2006
elpmek's Avatar
Silver Member
 
Join Date: Feb 2006
Location: Gloucestershire
Posts: 167
PC Experience: Experienced
elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page
Default

Thanks for that reference, I've been there already.

It's a SQL function & gobbleygook to me.

If the interger was in seconds from a start point (say 1/1/1800 AD) I could work it out, but it isn't.

Excel translation must be out there somewhere


  #4  
Old 08-15-2006
elpmek's Avatar
Silver Member
 
Join Date: Feb 2006
Location: Gloucestershire
Posts: 167
PC Experience: Experienced
elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page elpmek - See this Members User comments on their Profile page
Smile Closure

For those interested it turns out that in MySQL the number

1313046000

is in fact the number of seconds since 1/1/1970.

Excel uses 1/1/1900

All is now well


  #5  
Old 08-15-2006
Hengis's Avatar
PCHF Founder & Owner
My PC
 
Join Date: Jan 2004
Location: Newbury, England
Posts: 10,792
PC Experience: Always learning
Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page Hengis - See this Members User comments on their Profile page
Send a message via Skype™ to Hengis
Default

Good to know - thanks for posting the solution.


__________________
> Pre-Work > System File Checker
> Did we help you? If we did, please consider Donating

Reply
New! Norton Internet Security 2008 – Download Now Click Here

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT +1. The time now is 02:52 AM.
Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
All Graphics & Content Copyright © 2004-2008 - PC Help Forum.com


Back to Top