Date and Time Flashcards

1
Q

what function gets the current date?

A

Sys.Date()

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

What function returns the current datetime?

A

Sys.time()

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

as.Date(“X”, format = x)

A

creates a date using the symbols passed to the format argument

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

%Y

A

4 - digit year (1982)

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

%y

A

2-digit year (82)

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

%m

A

2-digit month (01)

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

%d

A

2 - digit day of the month (13)

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

%A

A

weekday (Wednesday)

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

%a

A

Abbreviated weekday (Wed)

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

%B

A

Month (January)

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

%b

A

abbreviated month (Jan)

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

%H

A

hours as a decimal number (00-23)

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

%I

A

hours as a decimal number (01-12)

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

%M

A

minutes as a decimal number

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

%S

A

seconds as a decimal number

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

%p

A

AM/PM indicator