Package: shide 0.2.1.9000

shide: Date/Time Classes Based on Jalali Calendar

Implements S3 classes for storing dates and date-times based on the Jalali calendar. The main design goal of 'shide' is consistency with base R's 'Date' and 'POSIXct'. It provide features such as: date-time parsing, formatting and arithmetic.

Authors:Mohsen Mollayi [aut, cre, cph]

shide_0.2.1.9000.tar.gz
shide_0.2.1.9000.zip(r-4.5)shide_0.2.1.9000.zip(r-4.4)shide_0.2.1.9000.zip(r-4.3)
shide_0.2.1.9000.tgz(r-4.4-x86_64)shide_0.2.1.9000.tgz(r-4.4-arm64)shide_0.2.1.9000.tgz(r-4.3-x86_64)shide_0.2.1.9000.tgz(r-4.3-arm64)
shide_0.2.1.9000.tar.gz(r-4.5-noble)shide_0.2.1.9000.tar.gz(r-4.4-noble)
shide_0.2.1.9000.tgz(r-4.4-emscripten)shide_0.2.1.9000.tgz(r-4.3-emscripten)
shide.pdf |shide.html
shide/json (API)
NEWS

# Install 'shide' in R:
install.packages('shide', repos = c('https://mmollayi.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mmollayi/shide/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

4.85 score 5 stars 7 scripts 133 downloads 39 exports 7 dependencies

Last updated 2 months agofrom:5f2ffdb96f. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 26 2024
R-4.5-win-x86_64OKOct 26 2024
R-4.5-linux-x86_64OKOct 26 2024
R-4.4-win-x86_64OKOct 26 2024
R-4.4-mac-x86_64OKOct 26 2024
R-4.4-mac-aarch64OKOct 26 2024
R-4.3-win-x86_64OKOct 26 2024
R-4.3-mac-x86_64OKOct 26 2024
R-4.3-mac-aarch64OKOct 26 2024

Exports:as_jdateas_jdatetimeis_jdateis_jdatetimejdatejdate_makejdate_nowjdatetimejdatetime_makejdatetime_nowsh_ceilingsh_daysh_day<-sh_floorsh_hoursh_hour<-sh_mdaysh_mday<-sh_minutesh_minute<-sh_monthsh_month<-sh_qdaysh_quartersh_roundsh_secondsh_second<-sh_tzonesh_wdaysh_ydaysh_yearsh_year_is_leapsh_year<-vec_arith.jdatevec_arith.jdatetimevec_cast.jdatevec_cast.jdatetimevec_ptype2.jdatevec_ptype2.jdatetime

Dependencies:clicpp11gluelifecyclerlangtzdbvctrs

Readme and manuals

Help Manual

Help pageTopics
Cast an object to a 'jdate' objectas_jdate
Cast an object to a 'jdatetime' objectas_jdatetime
Check an object for its classis_jdate is_jdatetime
Jalali calendar datesjdate jdate.character jdate.numeric
Construct Jalali date-time objects from individual componentsjdatetime_make jdate_make
Current Jalali date and datetimejdatetime_now jdate_now
Date-time based on the Jalali calendarjdatetime jdatetime.character
Generate regular sequences of Jalali datesseq.jdate
Generate regular sequences of Jalali date-timesseq.jdatetime
Get/set the days components of Jalali date-time objectssh_day sh_day.jdate sh_day.jdatetime sh_day<- sh_day<-.jdate sh_day<-.jdatetime sh_mday sh_mday<- sh_qday sh_qday.jdate sh_qday.jdatetime sh_wday sh_wday.jdate sh_wday.jdatetime sh_yday sh_yday.jdate sh_yday.jdatetime
Get/set the time components of 'jdatetime' objectssh_hour sh_hour.jdatetime sh_hour<- sh_hour<-.jdatetime sh_minute sh_minute.jdatetime sh_minute<- sh_minute<-.jdatetime sh_second sh_second.jdatetime sh_second<- sh_second<-.jdatetime
Get/set the month component of Jalali date-time objectssh_month sh_month.jdate sh_month.jdatetime sh_month<- sh_month<-.jdate sh_month<-.jdatetime
Get the quarter of Jalali date-time objectssh_quarter
Round Jalali dates to a specific unit of timesh_ceiling sh_floor sh_round
Get the time zone component of 'jdatetime' objectssh_tzone sh_tzone.jdatetime
Get/set the year component of Jalali date-time objectssh_year sh_year.jdate sh_year.jdatetime sh_year<- sh_year<-.jdate sh_year<-.jdatetime
Determine if a Jalali year is a leap yearsh_year_is_leap
Arithmetic operations for 'jdate' and 'jdatetime'shide-arithmetic vec_arith.jdate vec_arith.jdatetime
Coercionshide-coercion vec_ptype2.jdate vec_ptype2.jdatetime
Mathematical operations for 'jdate' and 'jdatetime'shide-math vec_math.jdate vec_math.jdatetime
Cast an object to a 'jdate' objectvec_cast.jdate
Cast an object to a 'jdatetime' objectvec_cast.jdatetime