|
R语言日期时间类date-time()函数-中英文对照帮助文档
By MicroRbt Martinez PhD
R语言函数名:date-time()
R语言函数功能:日期时间类
来自资源库:基础库(R语言自带)
date-time()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。
描述-----Description-----
Description of the classes "POSIXlt" and "POSIXct" representing calendar dates and times.
代表日历日期和时间的类"POSIXlt"和"POSIXct"的描述。
使用方法-----Usage-----
## S3 method for class 'POSIXct' S3 method for class 'POSIXct'
print(x, tz = "", usetz = TRUE, max = NULL, ...)
## S3 method for class 'POSIXct' S3 method for class 'POSIXct'
summary(object, digits = 15, ...)
time + z
z + time
time - z
time1 lop time2
参数-----Arguments-----
参数x, object介绍: an object to be printed or summarized from one of the date-time classes.
从日期时间类之一中打印或汇总的对象。
参数tz, usetz介绍: for timezone formatting, passed to format.POSIXct.
用于时区格式,传递给format.POSIXct。
参数max介绍: numeric or NULL, specifying the maximal number of entries to be printed. By default, when NULL, getOption("max.print") used.
数字或NULL,指定要打印的最大条目数。默认情况下,使用NULL,getOption("max.print")时。
参数digits介绍: number of significant digits for the computations: should be high enough to represent the least important time unit exactly.
计算的有效位数:应该足够高以准确表示最不重要的时间单位。
参数...介绍: further arguments to be passed from or to other methods.
要从其他方法传递或传递给其他方法的其他参数。
参数time介绍: date-time objects
日期时间对象
参数time1, time2介绍: date-time objects or character vectors. (Character vectors are converted by as.POSIXct.)
日期时间对象或字符向量。 (字符向量由as.POSIXct转换。)
参数z介绍: a numeric vector (in seconds)
数值向量(以秒为单位)
参数lop介绍: one of ==, !=, <, <=, > or >=.
==,!=,<,<=,>或>=之一。
详情-----Details-----
There are two basic classes of date/times. Class "POSIXct" represents the (signed) number of seconds since the beginning of 1970 (in the UTC time zone) as a numeric vector. Class "POSIXlt" is a named list of vectors representing
日期/时间有两个基本类别。类"POSIXct"用数字向量表示自1970年初(在UTC时区)以来的秒数(带符号)。类"POSIXlt"是向量的命名列表,表示
0—61: seconds.
0±61:秒。
0—59: minutes.
0±59:分钟。
0—23: hours.
0至23:小时。
1—31: day of the month
1月31日:每月的某天
0—11: months after the first of the year.
0×11:从第一年开始的几个月。
years since 1900.
自1900年以来。
0—6 day of the week, starting on Sunday.
每周的0×6天,从星期日开始。
0—365: day of the year (365 only in leap years).
0?a365:一年中的某天(仅leap年中为365)。
Daylight Saving Time flag. Positive if in force, zero if not, negative if unknown.
夏令时标志。有效时为正,否则为零,未知则为负。
(Optional.) The abbreviation for the time zone in force at that time: "" if unknown (but "" might also be used for UTC).
(可选。)当时有效的时区的缩写:""(如果未知)(但对于UTC也可能使用"")。
(Optional.) The offset in seconds from GMT: positive values are East of the meridian. Usually NA if unknown, but 0 could mean unknown.
(可选。)距GMT的偏移量(以秒为单位):正值位于子午线以东。如果未知,通常为NAc,但0可能表示未知。
(The last two components are not present for times in UTC and are platform-dependent: they are supported on platforms based on BSD or glibc (including Linux and macOS) and those using the tzcode implementation shipped with R (including Windows). But they are not necessarily set.). Note that the internal list structure is somewhat hidden, as many methods (including length(x), print() and str) apply to the abstract date-time vector, as for "POSIXct". As from R 3.5.0, one can extract and replace single components via [ indexing with two indices (see the examples). The classes correspond to the POSIX/C99 constructs of calendar time (the time_t data type |
|