How do you use timestamps to get current time in words?
#1

Hey, I seem to be regular here now. (lol)

Anyways, I'm making a system where people can check when they last logged in.


Thing is, I don't know how to use timestamps and how to convert it into words.

Help would be appreciated with a rep!
Reply
#2

Yet, what these topics never mention is the saving system that's in use. In MySQL it is extremely easy to use the inbuilt from_unixtime() function.
Reply
#3

- https://sampforum.blast.hk/showthread.php?tid=347605

Also check this ban system if you want to learn more about it: https://sampforum.blast.hk/showthread.php?tid=503631
Reply
#4

What is 'from_unixtime()'?

Can you explain it to me and give me an example, please? (never heard of that func)
Reply
#5

Quote:
Originally Posted by Juvanii
Посмотреть сообщение
Yeah, but how can I use it to display the current time.


(Im confused right now as I am pretty tired)
Reply
#6

Quote:
Originally Posted by sammp
Посмотреть сообщение
Yeah, but how can I use it to display the current time.
I'm pretty sure that u haven't even check the ban system -_-
Reply
#7

JUst read it and i think i understand now. Thanks!
Reply
#8

Problem.

I got the functions and stuff working, though this is what it updated to:

Код:
-1-1-1970 at 0:1:0
How do I fix this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)