简体   繁体   English

从SD卡文件中获取时间戳(日期和时间)

[英]get timestamp (date and time) from sd card file

Hello out there in B4A world! 在B4A世界中,您好! I'm trying to retrieve the timestamp from a file on the sd card. 我正在尝试从SD卡上的文件中检索时间戳。 The function 'files' doesn't have a timestamp method but I see the usage of things like file timestamp in ftp operations. 函数“文件”没有时间戳方法,但是我看到ftp操作中文件时间戳之类的用法。 What am I missing?! 我想念什么?! Thanks 谢谢

You can use File.LastModified to get the timestamp. 您可以使用File.LastModified来获取时间戳。 I think that this method was added in B4A v1.5 or v1.6. 我认为此方法是在B4A v1.5或v1.6中添加的。

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

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