Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Finance[YearFraction] - return the interval between two dates as a fraction of the year
Calling Sequence
YearFraction(todate, daycounter)
YearFraction(fromdate, todate, daycounter)
Parameters
fromdate
-
a string containing a date specification in a format recognized by ParseDate or a date data structure; first date
todate
a string containing a date specification in a format recognized by ParseDate or a date data structure; second date
daycounter
(optional) day counter or the name of a day counting convention
Description
The YearFraction command returns the period between fromdate and todate as a fraction of the year calculated according to the day counting convention specified by daycounter. If no day counter is specified, the default one will be used.
See DayCounter or CalendarsAndDayCounters for a detailed description of the supported day count conventions and additional examples.
Compatibility
The Finance[YearFraction] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
See Also
Finance[DayCount], Finance[DayCounter], Finance[FormatDate], Finance[ParseDate]
Download Help Document