How to query the document creation date, modification date and storage size

php中世界最好的语言
Release: 2018-06-09 15:44:42
Original
2992 people have browsed it

This time I will introduce to you how to query the document creation date, modification date and storage size. What are the precautions? The following is a practical case, let's take a look.

Introduction

To view the document creation date, modification date and document size, you can use the fileCreatedDate attribute, fileModifiedDate attribute, lastModified attribute and fileSize attribute to fulfill.

fileCreatedDateAttribute

This attribute is used to obtain the creation date of the document.

Syntax:

[date=]fileCreatedDate

date: String variable used to store the creation date of the document . date is optional.

fileModifiedDateAttribute

This attribute is used to obtain the last modified date of the document.

Syntax:

[date=]fileModifiedDate

date: String variable used to store the last modification of the document date. date is optional.

lastModifiedAttribute

This attribute is used to obtain the last modification time of the document.

Syntax:

[date=]lastModified

##date: String variable used to store the last modification of the document time. date is optional.

fileSizeAttribute

This attribute is used to obtain the size of the document.

Syntax:

[size=]fileSize

size: String variable used to store the document size. size is optional.

Second Application

View the document creation date, modification date and document size

This example displays the The document's creation date, modification date, and document size.

Three Code

   查看文件创建时间、修改时间和文档大小 
查看文件创建时间、修改时间和文档大小
Copy after login
I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the PHP Chinese website!

Recommended reading:

Operation WeChat applet login authentication from scratch

create-react-app configuration eslint Detailed explanation of steps

The above is the detailed content of How to query the document creation date, modification date and storage size. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!