Thread: Time

Results 1 to 3 of 3
  1. #1 Time 
    Registered Member
    Join Date
    Oct 2010
    Posts
    77
    Thanks given
    14
    Thanks received
    1
    Rep Power
    1
    I added something on my Delta server that tells you the time when you log in. It tells you a time. Not my time... How can I fix it?
    Reply With Quote  
     

  2. #2  
    Smash

    Raw Envy's Avatar
    Join Date
    Dec 2010
    Posts
    2,803
    Thanks given
    663
    Thanks received
    1,034
    Rep Power
    2655
    Post what you added then.. So we can see.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2011
    Posts
    3
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Use a SimpleDateFormat ([Only registered and activated users can see links. ]) to print out their initial login time.

    If you want to get the time when they log in you can simply add a variable (A long) in whichever class is the player class and when the class is initialized just set that variable to System.currentTimeMillis(). You probably won't be able to set it to their time but you should be able to set it to your time (Ideally make it print out EDT, PDT, BST, etc). In order to print out their time it would have to use some sort of GeoLocate to find the timezone that their IP is in, which tbh isn't necessary.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 2
    Last Post: 08-28-2010, 09:42 AM
  2. Replies: 18
    Last Post: 08-15-2010, 09:16 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •