Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Need help with encryption in mysql.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Wed Jun 09, 2010 2:40 pm    Post subject: Need help with encryption in mysql. This post has 1 review(s) Reply with quote

So these two values are dates and times.

1276057401 = 08 Jun 2010 09:23 pm

1276056443 = Some time before that.

Any idea how I can make my own dates in that format?
Back to top
View user's profile Send private message
Cheat Engine User
Something epic
Ban
Reputation: 61

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Wed Jun 09, 2010 2:48 pm    Post subject: Reply with quote

date("CODE HERE", 1276056443); I believe.
Back to top
View user's profile Send private message
Aniblaze
Grandmaster Cheater Supreme
Reputation: 138

Joined: 23 Apr 2006
Posts: 1757
Location: The Netherlands

PostPosted: Wed Jun 09, 2010 2:53 pm    Post subject: Reply with quote

That's a timestamp. It's the current time in seconds, measured from Januari 1st, 1970. You can make it by setting the column type to timestamp, and then just insert a date using something like


INSERT INTO someTable(timestampColumn) VALUES (DATE('2010-06-09'))

If you wish to print out a timestamp, use:

SELECT DATEFORMAT(timestampColumn, '%Y-%m-%d') FROM someTable


Last edited by Aniblaze on Wed Jun 09, 2010 2:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Wed Jun 09, 2010 2:54 pm    Post subject: Reply with quote

Oh, I think I figured it out, I was trying to do this inside mysql without php.

Augustine wrote:
That's a timestamp. It's the current time in seconds, measured from Januari 1st, 1970. You can make it by setting the column type to timestamp, and then just insert a date using something like


INSERT INTO someTable(timestampColumn) VALUES (DATE('2010-06-09'))


Right, I looked it up and found out it was seconds.
So to get a date earlier than 1970, I do negative seconds?
Badass.


Last edited by Cryoma on Wed Jun 09, 2010 2:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
Loganator
Master Cheater
Reputation: 4

Joined: 29 Oct 2008
Posts: 472

PostPosted: Wed Jun 09, 2010 2:54 pm    Post subject: Reply with quote

I am learning Javascript.
Back to top
View user's profile Send private message
To0k :]
Advanced Cheater
Reputation: 4

Joined: 08 Jun 2010
Posts: 79

PostPosted: Wed Jun 09, 2010 2:55 pm    Post subject: Reply with quote

4 8 15 16 23 42
Back to top
View user's profile Send private message
Aniblaze
Grandmaster Cheater Supreme
Reputation: 138

Joined: 23 Apr 2006
Posts: 1757
Location: The Netherlands

PostPosted: Wed Jun 09, 2010 2:55 pm    Post subject: Reply with quote

Stone wrote:
Oh, I think I figured it out, I was trying to do this inside mysql without php.


Augustine wrote:
That's a timestamp. It's the current time in seconds, measured from Januari 1st, 1970. You can make it by setting the column type to timestamp, and then just insert a date using something like


INSERT INTO someTable(timestampColumn) VALUES (DATE('2010-06-09'))

If you wish to print out a timestamp, use:

SELECT DATEFORMAT(timestampColumn, '%Y-%m-%d') FROM someTable
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites