插件自定义字段(用户)稳定版

Timestamp input

profilefield_timestampJordi Pujol Ahulló

  • Moodle 2.5–5.1
  • 更新 2022-02-17

A user profile field type that shows a timestamp both as human readable and unix time format.
Timestamp Profile Field
A user profile field type that shows a timestamp both as human readable and unix time format, with the form:
divendres, 18 octubre 2013, 11:38 (1382089086)
That is, {default site, human readable date + time format} ({unix timestamp number})
Why this plugin
If you synchronize/set user fields to know the time of an important issue/event related to the user, this field type shows you the timestamp both in human readable and numeric (unix timestamp value).
We found that as really useful for administrators, either technical or not.
From a technical viewpoint, it is better to store the unix timestamp, but show it human readable. In forensic cases, the unix timestamp value is really useful for technicians.
Behaviour
It works like the text field, but showing the value in both formats:
Human readable
Unix timestamp
However, only the unix timestamp value is stored. If it is allowed to be changed/updated, a date/time selector is shown in the form.
Installation
As usual:
Uncompress to user/profile/field/timestamp.
Go to  Notifications
License
It is released as GPL v3.

返回插件目录