Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a0ab4f49
Commit
a0ab4f49
authored
May 15, 2020
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comments linking pg_strftime to timestamptz_to_str
parent
242dfcba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/backend/utils/adt/timestamp.c
src/backend/utils/adt/timestamp.c
+2
-0
src/timezone/strftime.c
src/timezone/strftime.c
+6
-0
No files found.
src/backend/utils/adt/timestamp.c
View file @
a0ab4f49
...
...
@@ -1738,6 +1738,8 @@ timestamptz_to_time_t(TimestampTz t)
* This is mostly for use in emitting messages. The primary difference
* from timestamptz_out is that we force the output format to ISO. Note
* also that the result is in a static buffer, not pstrdup'd.
*
* See also pg_strftime.
*/
const
char
*
timestamptz_to_str
(
TimestampTz
t
)
...
...
src/timezone/strftime.c
View file @
a0ab4f49
...
...
@@ -118,6 +118,12 @@ static char *_fmt(const char *, const struct pg_tm *, char *, const char *,
static
char
*
_yconv
(
int
,
int
,
bool
,
bool
,
char
*
,
char
const
*
);
/*
* Convert timestamp t to string s, a caller-allocated buffer of size maxsize,
* using the given format pattern.
*
* See also timestamptz_to_str.
*/
size_t
pg_strftime
(
char
*
s
,
size_t
maxsize
,
const
char
*
format
,
const
struct
pg_tm
*
t
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment