Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此 Java 代码将时间戳转换为 Long 值:
Long.toString(new Timestamp(System.currentTimeMillis()).getTime(), 36)
结果,我得到h0zgkwm7了编码时间戳的价值。
h0zgkwm7
如何使用 PHP 将其解码为时间戳?
看起来你已经用 base 36 对其进行了编码。
你可以像这样解码它......
$decNumber = base_convert($str, 36, 10);