Skip to content
ExamplesOpen editor ↗

paloYaLetsatsi

→ day()

Returns the day of the month from the computer's clock, from 1 to 31.

paloYaLetsatsi()

It returns the number of the day within the month — not the name of the weekday.

One word, two meanings. In Setswana, letsatsi is a day of the month — and also the sun in the sky. Bopa has not invented a split the language does not make; the full name, paloYaLetsatsi, says which is meant: the number of the day, not the day itself. What is meant is the letsatsi la kgwedi, the day of the month.

Today's date in numbers
tiro setaLoeto() {
  thalaKanefase(400, 160);
  bokamorago(245);
  tlogelaMothalo();
  tlatsaMmala(40, 50, 70);
  mofutatlhaka('monospace');
  bogoloJwaMokwalo(38);
  rulaganyaMokwalo(BOGARE, BOGARE);

  metlha letlha = fometaPalo(paloYaLetsatsi(), 2) + '/' + fometaPalo(paloYaKgwedi(), 2) + '/' + paloYaNgwaga();
  thalaMokwalo(letlha, 200, 80);

  tlhalosa('Letlha la gompieno le kwadilwe ka dipalo mo bogareng jwa kanefase.');
}

paloYaKgwedi, paloYaNgwaga, paloYaUra