Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: time converter

  1. #11
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    I don't know it just worked, but now something is wrong. What I was trying to create was online system. I have two times and two dates: $time & $date - current time and date; $timet & $datet - time and date when user made move in past or maybe now.

    I need to count seconds of $time, $date and $timet, $dated to see which is higher.
    if xtimetdated - xtimedate >= -300 it will show online.

    time formats:

    $datet = date("Y-m-d");
    $timet = date("H:i:s");

    same as $date and $time

  2. #12
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I can't help until I know what is wrong. Can I see an example to your page, also can you please tell me whats supposed to happen from a users point of view.

    Thanks! ~Nile
    Jeremy | jfein.net

  3. #13
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    Here in the end of page... Every USER will see online nicks of others in green color. When theres no user online it shows black message

  4. #14
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    So - whats the problem? You don't want the black message?
    Jeremy | jfein.net

  5. #15
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    The problem is in all system... I give a good time everytime, but somehow its not working. My problem is, that when i log into it shows that I am online and after 6 minutes its not. Somehow, time is counting in bad way...

  6. #16
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Sorry - I didn't completely understand. 6 minutes after you log in - it shows whos online?
    Jeremy | jfein.net

  7. #17
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    yes, 6 minutes it shows that im online. also I can see other online users.

    can you understand my script which i posted? what it does...

  8. #18
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Well, I can't help you, I'm very sorry. Try making a new thread - because this thread is old, and users don't want to post in it [also, the question your asking doesn't have anything to do with the original thread]

    Sorry and good luck!
    Jeremy | jfein.net

  9. #19
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    Ok, let's go back few steps...

    I have
    $date = date("Y-m-d");
    $time = date("H:i:s");

    How I can count(convert) date and time into seconds?

  10. #20
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    Ok, let's go back few steps...

    I have
    $date = date("Y-m-d");
    $time = date("H:i:s");

    How I can count(convert) date and time into seconds?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •