Jump to content
  • 0

Time Convert From Unix To Java


Question

Posted (edited)

Basically i want to convert UNIX timestamp to Java date in format this format "dd.mm.year hour-1 :: hour+1".
I tried to make it on my own, but it seems for a newbie like me is to hard, could someone give a quick tip/guide? Thank you in advance.

Edit: i CAN make it happen, but the code itself is very shitty, after taking -1 hour (for example it's 00:00, so -1 will make 23:00, but in my case it makes 0-1:00 :( ) and tone of appends

Edited by Pleyne

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...