question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DB dump Export: custom date/timestamp format variables (like ${Y}, ${d}, ${m} etc)

See original GitHub issue

Is your feature request related to a problem? Please describe.

currently ${timestamp} produces 202105091341 and ${date} produces 20210509 neither of which is very human (read: non-sysadmin) readable

Describe the solution you’d like

I propose adding custom date format variables that produce a single part of the timestamp.

Additional context

lets use C-like date format variables

they would be formatted as ${c_like_date_format_letter} i.e. ${Y}, ${d}, ${m} etc

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ShadelessFoxcommented, Oct 20, 2021

Added new pattern variables for tools and data transfer: ${year}, ${month}, ${day}, ${hour}, and ${minute}.

1reaction
kseniiaguzeevacommented, May 20, 2021

Thank you for the suggestion. We are going to implement it in one of future releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DATE, TIMESTAMP and format masks - Oracle APEX
This posting contains some information about the differences between DATE and TIMESTAMP and about format masks and how they work in Application ...
Read more >
Date and time format variables - Splunk Documentation
Subsecond time variables such as %N and %Q can be used in metrics searches of metrics indexes that are enabled for millisecond timestamp...
Read more >
SQL Convert Date functions and formats
In this article, we will explore various SQL Convert Date formats to use in writing SQL queries. We need to work with date...
Read more >
Exploring Postgres date formats and their different functions
In this article, we will explore Postgres dates, the different date data types, uses and functions. Date and timestamps are helpful for data ......
Read more >
How can I set a custom date time format in Oracle SQL ...
You can change this in preferences: From Oracle SQL Developer's menu go to: Tools > Preferences. From the Preferences dialog, select Database >...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found