This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
will i be notified of comemnts? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
what about a gist that i dont' stoar? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyApp extends Component { | |
fullCalendar = React.createRef() | |
render() { | |
return ( | |
<div> | |
<button onClick={ this.handleNext }>goto next</button> | |
<FullCalendar ref={ this.fullCalendar } /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Temporal.ZonedDateTime(nano, timeZone, calendar) | |
/* instead: */ Temporal.Instant.fromEpochMilliseconds(milli) | |
/* */ .toZonedDateTimeISO(timeZone) | |
/* OR */ | |
/* instead: */ Temporal.Instant.fromEpochMilliseconds(milli) | |
/* */ .toZonedDateTime({ timeZone, calendar }) | |
zonedDateTime.epochMicroseconds | |
/* instead: */ zonedDateTime.epochMilliseconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Called towards the end of Duration::round when either: | |
- "relativeTo" is a ZonedDateTime | |
- "relativeTo" is a PlainDate | |
Also called towards the end of PlainDateTime/PlainDate::since/until when largestUnit > day | |
Also called towards the end of ZonedDateTime::since/until when largestUnit >= day | |
Avoids concepts of balancing/unbalancing/normalizing that the original algorithm uses, | |
a lot of which seems repetitive. Instead, leverages epoch-nanosecond comparisons. | |
Both more performant and smaller code size. |
OlderNewer