Libraryless. Click here for Pure Java version (9928L/55K).
1 | static Timestamp toTimestamp(long unixTime) { |
2 | ret unixTime == 0 ? null : Timestamp(unixTime); |
3 | } |
4 | |
5 | static Timestamp toTimestamp(java.nio.file.attribute.FileTime fileTime) { |
6 | ret fileTime == null ?: toTimestamp(fileTime.toMillis()); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035434 |
Snippet name: | toTimestamp |
Eternal ID of this version: | #1035434/5 |
Text MD5: | 54894c9b6489c0448799a00675e6fb48 |
Transpilation MD5: | 574c2e480db8f80f7ee8a0e376801868 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-11 19:40:59 |
Source code size: | 240 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 151 / 226 |
Version history: | 4 change(s) |
Referenced in: | [show references] |