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: | 789 / 1253 |
Version history: | 2 change(s) |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1002652 - unixSeconds - synonym of unixTime #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |