All Projects → jsynowiec → vscode-insertdatestring

jsynowiec / vscode-insertdatestring

Licence: MIT license
An extension for Visual Studio Code that provides a configurable command for inserting the current date and time

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vscode-insertdatestring

format-date
📆 A small library (around 400 B when gziped & minified) to format JavaScript `Date` object using same tokens as moment.
Stars: ✭ 25 (-56.9%)
Mutual labels:  datetime, timestamp, date-formatting
Time
Building a better date/time library for Swift
Stars: ✭ 1,983 (+3318.97%)
Mutual labels:  datetime, date-formatting, date-time
Eztime
ezTime — pronounced "Easy Time" — is a very easy to use Arduino time and date library that provides NTP network time lookups, extensive timezone support, formatted time and date strings, user events, millisecond precision and more.
Stars: ✭ 173 (+198.28%)
Mutual labels:  datetime, timestamp, date-time
material-ui-datetimepicker
[UNMAINTAINED] Wrapper for Material UI Date and Time picker components
Stars: ✭ 32 (-44.83%)
Mutual labels:  datetime, date-time
isodatetime
📅 ⌚ Python ISO 8601 date time parser and data model/manipulation utilities
Stars: ✭ 32 (-44.83%)
Mutual labels:  datetime, iso8601
react-timestamp
A React component for displaying a UTC datetime in the local timezone
Stars: ✭ 45 (-22.41%)
Mutual labels:  datetime, timestamp
Dayjs
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
Stars: ✭ 37,373 (+64336.21%)
Mutual labels:  datetime, date-formatting
dayjs
Extended fork of Day.js - 2KB immutable date library alternative to Moment.js
Stars: ✭ 36 (-37.93%)
Mutual labels:  datetime, date-formatting
Tinydate
A tiny (349B) reusable date formatter. Extremely fast!
Stars: ✭ 990 (+1606.9%)
Mutual labels:  datetime, timestamp
Pytime
PyTime is an easy-use Python module which aims to operate date/time/datetime by string.
Stars: ✭ 140 (+141.38%)
Mutual labels:  datetime, date-time
Swiftdate
🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.
Stars: ✭ 6,661 (+11384.48%)
Mutual labels:  date-formatting, date-time
Jest Date Mock
🌗 Mock `Date` when run unit test cases with jest. Make tests of Date easier.
Stars: ✭ 224 (+286.21%)
Mutual labels:  datetime, timestamp
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (+639.66%)
Mutual labels:  datetime, date-time
Time Stamp
Get a formatted timestamp. Used in gulp, assemble, generate, and many others.
Stars: ✭ 104 (+79.31%)
Mutual labels:  datetime, timestamp
Pdd
📅 Tiny date, time diff calculator with piggybacked timers
Stars: ✭ 218 (+275.86%)
Mutual labels:  datetime, date-time
iso8601
A fast ISO8601 date parser for Go
Stars: ✭ 122 (+110.34%)
Mutual labels:  datetime, iso8601
susuwatari
A light monochrome theme with a minimal amount of highlighting for Visual Studio Code
Stars: ✭ 16 (-72.41%)
Mutual labels:  visual-studio-code
cds-for-code
VSCode extension for working with Microsoft Common Data Service (CDS)
Stars: ✭ 22 (-62.07%)
Mutual labels:  visual-studio-code
porth-language
VSCode extension for the Porth language
Stars: ✭ 21 (-63.79%)
Mutual labels:  visual-studio-code
NALib
General purpose C sourcecode collection
Stars: ✭ 16 (-72.41%)
Mutual labels:  datetime

VSCode extension - Insert Date String

Sponsor Version Ratings Installs License

A plugin for Visual Studio Code that inserts the current date and/or time according to configured format. Available in VisualStudio Marketplace.

Notice Version 2.0 changed settings namespace from insertdatestring to insertDateString. Please update your userspace and workspace settings.

Installation

Open Command Palette by pressing F1, type ext install and then look for Insert Date String extension.

Usage

Following commands are available:

  • Insert DateTime (++I on OS X, Ctrl+Shift+I on Windows and Linux) - Inserts current date and/or time according to configured format (format) at the cursor position.
  • Insert Date - Inserts current date according to configured format (formatDate) at the cursor position.
  • Insert Time - Inserts current time according to configured format (formatTime) at the cursor position.
  • Insert Timestamp - Inserts current timestamp in milliseconds at the cursor position.
  • Insert Formatted DateTime (+++I on OS X, Ctrl+Alt+Shift+I on Windows and Linux) - Prompt user for format and insert formatted date and/or time at the cursor position.

Available settings

  • Date and time format string (this affects Insert DateTime output):
  • Date format string (this affects Insert Date output):
  • Time format string (this affects Insert Time output):
// Date format to be used.
"insertDateString.format": "YYYY-MM-DD hh:mm:ss",
"insertDateString.formatDate": "YYYY-MM-DD",
"insertDateString.formatTime": "hh:mm:ss",

Syntax

  • Y - A two digit representation of a year without leading zeros. Examples: 99 or 3
  • YY - A two digit representation of a year. Examples: 99 or 03
  • YYYY - A full numeric representation of a year, 4 digits. Examples: 1999 or 2003
  • M - Numeric representation of a month, without leading zeros. 1 through 12
  • MM - Numeric representation of a month, with leading zeros. 01 through 12
  • MMM - A short textual representation of a month, three letters. Jan through Dec
  • MMMM - A full textual representation of a month, such as January or March. January through December
  • D - Day of the month without leading zeros. 1 to 31
  • DD - Day of the month, 2 digits with leading zeros. 01 to 31
  • DDD - A textual representation of a day, three letters. Mon through Sun
  • DDDD - A full textual representation of the day of the week. Sunday through Saturday
  • H - 12-hour format of an hour without leading zeros. 1 through 12
  • HH - 12-hour format of an hour with leading zeros. 01 through 12
  • h - 24-hour format of an hour without leading zeros. 0 through 23
  • hh - 24-hour format of an hour with leading zeros. 00 through 23
  • m - Minutes without leading zeros. 0 through 59
  • mm - Minutes with leading zeros. 00 to 59
  • s - Seconds without leading zeros. 0 through 59
  • ss - Seconds with leading zeros. 00 to 59
  • S - Milliseconds without leading zeros. 0 through 999
  • SS - Milliseconds with leading zeros. 000 to 999
  • U - Milliseconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
  • u - Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
  • A - Ante meridiem and Post meridiem. AM or PM

Time zone designators

  • Z - Time offsets from UTC in the form ±hh[:mm] Examples: +02, +02:30
  • ZZ - Time offsets from UTC in the form ±hh[mm] Examples: +02, +0230
  • ZZZ - Time offsets from UTC in the form ±hh:mm Examples: +02:00, +02:30
  • ZZZZ - Time offsets from UTC in the form ±hhmm Examples: +0200, +0230

ISO-8601

  • iso - Simplified extended ISO format (ISO 8601) without miliseconds. The timezone is always zero UTC offset, as denoted by the suffix "Z".
  • w - Day of the week. 1 (for Monday) through 7 (for Sunday)
  • W - Week number of year, first week is the week with 4 January in it
  • o - ISO 8601 year number. This has the same value as YYYY, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead

Examples

  • UTC date and time: iso (2013-07-16T20:13:31Z)
  • Year and month: YYYY-MM (2013-07)
  • Complete date: YYYY-MM-DD (2013-07-16)
  • Complete date plus hours, minutes, seconds and difference to GMT: YYYY-MM-DDThh:mm:ssZZZ (2013-07-16T20:13:31+01:00)

License

Released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].