68 users online (0 members and 68 guests)  

Thread: Time sorting


  Results 1 to 2 of 2

Related

  1. Top 10 sorting    Forum: Javascript Forum
    Replies: 11
  2. Sorting by column on webpage    Forum: CGI Perl Forum
    Replies: 2
  3. Sorting with perl    Forum: CGI Perl Forum
    Replies: 2
  4. Sorting alhpanumeric files    Forum: CGI Perl Forum
    Replies: 1
  5. down time    Forum: One Stop Domains Forum
    Replies: 1
  1. #1
    Tech2007's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2006
    Posts
    1

    Time sorting

    i neeed a script that can check local time of the user against times on the web site and remove all times that have expired, any help would be good

  2. #2
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Time sorting

    well to get the time according to the current user use:

    Code:
    var d = new Date();
    var unixtimestamp = d.getTime();
    That will set "unixtimestamp" to a unix timestamp to the .000 position so.. you will need to devide by 1000 to get the second.

    Then with php or whatever have it output a timestamp then have the javascript do whatever it needs with it...

    however i am not sure what you mean by:

    "and remove all times that have expired"!?!?

    because how do you remove "a time"?

    -ALL



Tags for this Thread