Skip to content

Portuguese (pt)

Portuguese locale support in whichtime.

Casual Dates

ExpressionMeaning
hojetoday
amanhãtomorrow
ontemyesterday
depois de amanhãday after tomorrow
anteontemday before yesterday

Weekdays

ExpressionMeaning
segunda-feiraMonday
terça-feiraTuesday
quarta-feiraWednesday
quinta-feiraThursday
sexta-feiraFriday
sábadoSaturday
domingoSunday

Month Names

ExpressionMonth
janeiro1
fevereiro2
março3
abril4
maio5
junho6
julho7
agosto8
setembro9
outubro10
novembro11
dezembro12

Date Formats

Portuguese uses DD/MM/YYYY format:

FormatExample
DD/MM/YYYY25/12/2024
D de Month de YYYY25 de dezembro de 2024

Examples

python
from whichtime import parse_with_locale, WhichTimeLocale

parse_with_locale("hoje", WhichTimeLocale.PT)
parse_with_locale("amanhã", WhichTimeLocale.PT)
parse_with_locale("amanhã às 15h", WhichTimeLocale.PT)

Released under the MIT License.