Skip to content

Reshaping the description#295

Merged
sumn2u merged 2 commits intosumn2u:mainfrom
Danieljeffery695:changing-toUTC-function-to-toTemporalInstant-edit
Aug 6, 2025
Merged

Reshaping the description#295
sumn2u merged 2 commits intosumn2u:mainfrom
Danieljeffery695:changing-toUTC-function-to-toTemporalInstant-edit

Conversation

@Danieljeffery695
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
learn-javascript ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2025 2:22pm

@Danieljeffery695
Copy link
Copy Markdown
Contributor Author

replaced the description with the one you provided: "Returns a Date object converted to a Temporal.Instant, which represents a fixed point in time (down to nanoseconds, in UTC)."

@sumn2u
Copy link
Copy Markdown
Owner

sumn2u commented Aug 6, 2025

Fixes #293

@sumn2u sumn2u requested a review from Copilot August 6, 2025 14:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates documentation across multiple language files to replace the deprecated toUTC() method with the newer toTemporalInstant() method in Date object method tables.

  • Replaces outdated toUTC() method documentation with toTemporalInstant()
  • Updates method descriptions to reflect the Temporal API functionality
  • Maintains consistency across Turkish, Nepali, Indonesian, French, Spanish, and English documentation

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tr/date-and-time.md Updates Turkish documentation to replace toUTC() with toTemporalInstant()
np/date-and-time.md Updates Nepali documentation to replace toUTC() with toTemporalInstant()
id/date-and-time.md Updates Indonesian documentation to replace toUTC() with toTemporalInstant()
fr/date-and-time.md Updates French documentation to replace toUTC() with toTemporalInstant()
es/date-and-time.md Updates Spanish documentation to replace toUTC() with toTemporalInstant()
en/date-and-time.md Updates English documentation to replace toUTC() with toTemporalInstant()

Comment thread es/date-and-time.md
| `toUTCString()` | Convierte la fecha en una cadena según el formato universal. |
| `toUTC()` | Devuelve los milisegundos desde la medianoche del 1 de enero de 1970 en formato UTC |
| `toTemporalInstant()` | Devuelve un objeto Date convertido a Temporal.Instant, que representa un punto fijo en el tiempo (hasta nanosegundos, en UTC). |
| `valueOf()` | Devuelve el valor primitivo de `Date |
Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing backtick after Date. Should be Date.

Suggested change
| `valueOf()` | Devuelve el valor primitivo de `Date |
| `valueOf()` | Devuelve el valor primitivo de `Date` |

Copilot uses AI. Check for mistakes.
Comment thread en/date-and-time.md
| `toUTC()` | Returns the milliseconds since midnight Jan 1 1970 in UTC format |
| `valueOf()` | Returns the primitive value of `Date` |
| `toTemporalInstant()` | Returns a Date object converted to a Temporal.Instant, which represents a fixed point in time (down to nanoseconds, in UTC). |
| `valueOf()` | Returns the primitive value of `Date |
Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing closing backtick after Date. Should be Date.

Suggested change
| `valueOf()` | Returns the primitive value of `Date |
| `valueOf()` | Returns the primitive value of `Date` |

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner

@sumn2u sumn2u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@sumn2u sumn2u merged commit b39b2ca into sumn2u:main Aug 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants