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).

1  
static long unixTime() {
2  
  ret unixTime(now());
3  
}
4  
5  
static long unixTime(long timestamp) {
6  
  ret timestamp/1000;
7  
}
8  
9  
static long unixTime(Date date) {
10  
  ret unixTime(toLong(date));
11  
}

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: 790 / 1255
Version history: 2 change(s)
Referenced in: [show references]