[Solved] Get the server time as a string

Discussion in 'Plugin Development' started by JOPHESTUS, Aug 12, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    JOPHESTUS

    Hey guys,

    There is a feature that I want to add to my plugin but I don't have the slightest idea how

    Feature I need help with:
    Get the server time and put it to a string so I can timestamp warnings
     
  2. Offline

    The_Coder

  3. Offline

    JOPHESTUS

  4. If you just want a timestamp:
    long timestamp = System.currentTimeMillis() / 1000L;
     
    Turtlegasm likes this.
  5. Offline

    JOPHESTUS

    EDIT: The_Coder 's worked.

    Thanks guys for helping :)
     
Thread Status:
Not open for further replies.

Share This Page