Dates and Times Flashcards

1
Q

as.Date(s) and as.POSIXct(s)

A

as.Date(s) and as.POSIXct(s) convert to the respective class; format(dt) converts to a string representation. The default string format is “2001-02-21”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

%a, %A

A

Abbreviated and full weekday name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

%b, %B

A

Abbreviated and full month name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

%d

A

Day of the month (01–31).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

%H

A

Hours (00–23).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

%I

A

Hours (01–12).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

%j

A

Day of year (001–366).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

%m

A

Month (01–12).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

%M

A

Minute (00–59).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

%p

A

AM/PM indicator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

%S

A

Second as decimal number (00–61).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

%U

A

Week (00–53); the first Sunday as day 1 of week 1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

%w

A

Weekday (0–6, Sunday is 0).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

%W

A

Week (00–53); the first Monday as day 1 of week 1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

%y

A

Year without century (00–99). Don’t use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

%Y

A

Year with century.

17
Q

%z

A

(output only.) Offset from Greenwich; -0800 is 8 hours west of.

18
Q

%Z

A

(output only.) Time zone as a character string (empty if not available).