简体   繁体   English

Java代码中的Excel公式

[英]Excel formula in java code

Using excel sheet formula in java code, when given a date, month, and year as an input, it should generate the unique id.在java代码中使用excel表格公式,当给定日期、月份和年份作为输入时,它应该生成唯一的ID。 When I use that generated unique id as an input, it should in reverse display the proper date, month, and year which was given as an input当我使用生成的唯一 ID 作为输入时,它应该反向显示作为输入给出的正确日期、月份和年份

Input=Date+Month+Year   
Output=generate unique id 

Input=Generated Unique id
Output=Date+Month+Year

You have java.util.UUID .你有java.util.UUID You can set either the most or least significant bits of your UUID sequence.您可以设置 UUID 序列的最高或最低有效位。 Choose to fix the most significant bits to the corresponding date to conform to the standard.选择将最高有效位固定到相应的日期以符合标准。 Read documentation.阅读文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM