Insert Date/Time Plugin

The Insert Date/Time plugin inserts the current date and time into a document. To use the Insert Date/Time plugin, perform the following steps:

  1. Choose Edit ▸ Insert Date and Time.

    If you have not configured the Insert Date/Time plugin to automatically insert the date/time without prompting you for the format, gedit displays the Insert Date and Time dialog. Select the appropriate date/time format from the list. Click Insert to close the Insert Date and Time dialog. gedit inserts the date/time at the cursor position in the current file.

    If you have configured gedit to use one particular date/time format, the Insert Date and Time dialog is not displayed. The date/time is automatically entered at the cursor position in the current file.

10.7.1. Configuring the Insert Date/Time Plugin

To configure the Insert Date/Time plugin, perform the following steps:

  1. Choose Edit ▸ Preferences.

  2. Select the Plugins tab.

  3. Select the Insert Date/Time plugin.

  4. Click Configure Plugin to display the Configure insert date/time plugin dialog.

  5. Select one of the options, as follows:

    • To specify the date/time format each time you insert the date/time, select the Prompt for a format option.
    • To use the same gedit-provided date/time format each time you insert the date/time, select the Use the selected format option, then select the appropriate format from the list. When you select this option, gedit does not prompt you for the date/time format when you choose Edit ▸ Insert Date and Time.
    • To use the same customized date/time format each time you insert the date/time, select the Use custom format option, then enter the appropriate format in the text box. For more information about how to specify a custom format, see strftime(3). When you select this option, gedit does not prompt you for the date/time format when you choose Edit ▸ Insert Date and Time.
  6. Click OK to close the Configure insert date/time plugin dialog.

  7. To close the Preferences dialog, click Close.