Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1002062 // unixTime (in seconds)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (10709L/59K).

static long unixTime() {
  ret unixTime(now());
}

static long unixTime(long timestamp) {
  ret timestamp/1000;
}

static long unixTime(Date date) {
  ret unixTime(toLong(date));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002062
Snippet name: unixTime (in seconds)
Eternal ID of this version: #1002062/3
Text MD5: 87b4456d0d7b66d01acf1fa33a0e0e03
Transpilation MD5: b9e680c5fb597f95195eb8afd9d1c04d
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-04-25 14:38:45
Source code size: 190 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 700 / 1146
Version history: 2 change(s)
Referenced in: [show references]