★ wanayoo — archive 1999 https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCStringNouvelle recherche | Portail wanayoo

Date.prototype.toUTCString()

by 1 contributor:

This article is in need of an editorial review.

This translation is incomplete. Please help translate this article from English.

概要

協定世界時を使って日付を文字列に変換します。

構文

dateObj.toUTCString()

引数

なし

説明

toUTCString()によって返される値は UTCタイムゾーンで人間が読める文字列です。戻り値のフォーマットはプラットフォームに応じて変わります。共通の戻り値はRFC-1123 フォーマット日付スタンプです。RFC-822の日付スタンプをわずかに更新しています。

例

例: toUTCString()を使う

var today = new Date();
var UTCstring = today.toUTCString();
// Mon, 03 Jul 2006 21:44:38 GMT

仕様

仕様 状況 コメント
ECMAScript 1st Edition. Standard Initial definition. Implemented in JavaScript 1.3.
ECMAScript 5.1 (ECMA-262)
The definition of 'Date.prototype.toUTCString' in that specification.
Standard  
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'Date.prototype.toUTCString' in that specification.
Standard  

ブラウザ実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari
基本サポート (有) (有) (有) (有) (有)
機能 Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
基本サポート (有) (有) (有) (有) (有) (有)

関連情報

ドキュメントのタグと貢献者

Contributors to this page: shide55
最終更新者: shide55,
サイドバーを隠す