Timestamp color include AM/PM format
See original GitHub issueWhat would you suggest I could do to include AM/PM in color formatting? I have tried to add custom pattern, but it is now helping
"logFileHighlighter.customPatterns": [
{
"pattern": "AM",
"foreground": "#AFF2C5"
},
{
"pattern": "PM",
"foreground": "#AFF2C5"
}
]
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Timestamps, Time Zones, Time Ranges, and Date Formats
Learn how Sumo Logic manages timestamps, time zones, time ranges, and dates, and the configuration options that are available.
Read more >How do you display JavaScript datetime in 12 ... - Stack Overflow
function formatAMPM(date) { var hours = date.getHours(); var minutes = date.getMinutes(); var ampm = hours >= 12 ? 'pm' : 'am'; hours =...
Read more >Custom Date Formats - Tableau Help
Supported date format symbols ; am/pm, Use the 12-hour clock and display a lowercase AM with any hour before noon; display a lowercase...
Read more >Format a date and time field - Microsoft Support
The date and time data types have a wide variety of formats to help meet your unique ... The time is displayed as,...
Read more >Data formats - Material Design
Data formats depict different types of numeric and linguistic data. ... Use a single AM or PM at the end of the range,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
\\b
matches a word boundary. But I have to confess that I don’t understand how that helps in this case, so I’ll leave that explanation for @HaaLeo 😃@mikeerickson When a custom pattern consists only of letters it is wrapped before the regex is built (Reference). This built regex does not match
... PM]
. However when the custom pattern consitst of characters different than letters (in this case\\
) the regex is built directly with the custom pattern without wrapping.