加入日期/時間增效模組

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. 請選擇 編輯 ▸ 加入日期和時間

    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

如果要配置加入日期及時間增效模組,請執行下列步驟:

  1. 請選擇編輯 ▸ 偏好設定

  2. Select the Plugins tab.

  3. 選取 加入日期及時間增效模組。

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

  5. 選取下列任一選項:您可以選擇下列條件中的一項或以上:

    • 如果要在每次加入日期/時間時指定日期/時間格式,請選取提示指定格式選項。
    • 如果要在每次加入日期/時間時都使用 gedit 提供的日期/時間格式,請選取使用選取的格式選項,然後從清單中選取適當的格式。當您選取這個選項後,gedit 並不會在您選擇編輯 ▸ 加入日期和時間時,提示您設定日期/時間的格式。
    • 如果要在每次加入日期/時間時都使用自訂的日期/時間的格式,請選取使用自訂格式選項,然後在文字方塊中輸入適當的格式。若需如何自訂格式的詳細資訊,請參閱 strftime(3)。當您選取這個選項後,gedit 並不會在您選擇編輯 ▸ 加入日期和時間時,提示您設定日期/時間的格式。
  6. 按一下確定,關閉配置加入日期/時間增效模組對話方塊。

  7. 如果要關閉偏好設定對話方塊,請按一下關閉