Skip to content

French (fr)

French locale support in whichtime.

Casual Dates

ExpressionMeaning
aujourd'huitoday
demaintomorrow
hieryesterday
après-demainday after tomorrow
avant-hierday before yesterday

Relative Dates

Past

ExpressionMeaning
il y a X joursX days ago
il y a X semainesX weeks ago
la semaine dernièrelast week
le mois dernierlast month
l'année dernièrelast year

Future

ExpressionMeaning
dans X joursin X days
dans X semainesin X weeks
dans une semainein a week
la semaine prochainenext week
le mois prochainnext month
l'année prochainenext year

Weekdays

ExpressionMeaning
lundiMonday
mardiTuesday
mercrediWednesday
jeudiThursday
vendrediFriday
samediSaturday
dimancheSunday
lundi prochainnext Monday
vendredi dernierlast Friday

Month Names

ExpressionMonth
janvier1
février2
mars3
avril4
mai5
juin6
juillet7
août8
septembre9
octobre10
novembre11
décembre12

Time Expressions

ExpressionTime
15h15:00
15h3015:30
à 15hat 15:00
midinoon
minuitmidnight
le matinmorning
l'après-midiafternoon
le soirevening

Date Formats

French uses DD/MM/YYYY format:

FormatExample
DD/MM/YYYY25/12/2024
D Month YYYY25 décembre 2024
le D Monthle 25 décembre

Examples

python
from whichtime import parse_with_locale, WhichTimeLocale

# Casual
parse_with_locale("aujourd'hui", WhichTimeLocale.FR)
parse_with_locale("demain", WhichTimeLocale.FR)

# Relative
parse_with_locale("dans 2 jours", WhichTimeLocale.FR)
parse_with_locale("il y a 3 semaines", WhichTimeLocale.FR)

# Combined
parse_with_locale("demain à 15h", WhichTimeLocale.FR)
parse_with_locale("lundi prochain", WhichTimeLocale.FR)
parse_with_locale("demain matin", WhichTimeLocale.FR)

Released under the MIT License.