1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00
Nik Clayton 49868155b9
feat: Document datetime and date formats (#1565)
Add a new document that precisely describes the string representation of
datetime and date types.

The previous description of them as "ISO 8601 Datetime" was very
imprecise, as ISO 8601 describes many different ways of representing a
datetime and date.

Specify the datetime format precisely as the ISO 8601 profile described
in RFC 3339, and the date format precisely as the "Complete date" format
from the W3C note on date and time formats.

Adjust all the references to ISO 8601 datetimes or dates to link back
to the definition.

Fixes #1420
2024-11-27 15:08:51 +00:00

1.0 KiB

title description menu aliases
Admin::Ip Represents an IP address associated with a user.
docs
parent
entities
/entities/admin-ip
/entities/Admin-Ip
/entities/admin_ip
/entities/Admin_Ip
/api/entities/admin-ip
/api/entities/Admin-Ip
/api/entities/admin_ip
/api/entities/Admin_Ip

Example

{
	"ip": "192.168.42.1",
	"used_at": "2022-09-15T01:38:58.851Z"
}

Attributes

ip

Description: The IP address.
Type: String (IP address)
Version history:
3.5.0 - added

used_at

Description: The timestamp of when the IP address was last used for this account.
Type: String (Datetime)
Version history:
3.5.0 - added

See also

{{< page-relref ref="entities/Admin_Account#ips" caption="Admin::Account (ips attribute)" >}}

{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/serializers/rest/admin/ip_serializer.rb" caption="app/serializers/rest/admin/ip_serializer.rb" >}}