yyyy年MM月dd日

手机软件开发 2024-9-21 02:57:12 62 0 来自 中国
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.function.Function;
public class Demo {
public static void main(String[] args) {
Function<Object, String> now = n -> {
return new SimpleDateFormat("import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.function.Function;
public class Demo {
public static void main(String[] args) {
Function<Object, String> now = n -> {
return new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒").format(new Date());
};
System.out.println(now.apply(null));
}
}
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.function.Function;
public class Demo {
public static void main(String[] args) {
Function<Object, String> now = n -> {
return new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒").format(new Date());
};
System.out.println(now.apply(null));
}
}
HH时mm分ss秒").format(new Date());
};
System.out.println(now.apply(null));
}
}
您需要登录后才可以回帖 登录 | 立即注册

Powered by CangBaoKu v1.0 小黑屋藏宝库It社区( 冀ICP备14008649号 )

GMT+8, 2024-11-22 11:47, Processed in 0.215501 second(s), 32 queries.© 2003-2025 cbk Team.

快速回复 返回顶部 返回列表