Campo · Commit Date

Campo · Commit Date · git.commitDate. Metodo di generazione · Esempio

git.commitDate

Impostazioni

Genera dati per vedere i risultati.

Parametri & Esempio

Generates a date string for a git commit using the same format as git log.

git.commitDate(options?: { refDate? })
options
The optional options object.
options.refDate
The date to use as reference point for the commit. Defaults to the configured reference date.

Esempio

"Wed Dec 31 16:01:56 2025 -0800"

Usa dati sintetici nell’ambiente di test.

Generatori correlati

Esplora gli scenari