Home > By category > Scripts >Development Tools > DATEPART



DATEPART

  • Downloads: 
  • Views: 
  • Rating:

X = DATEPART(DATE,'part') returns the date 'part' (year, month,day, hour, minute or second) of the datenum date with the decimal equivalent of the trailing date parts in the units of 'part'. DATE can be scalar, vector or array and X will be of the some size and shape.

[X1,X2,...] = DATEPART(DATE,'part1','part2',...) returns each decimal value corresponding to each part input argument.

Acceptable string specifiers for 'part' are:
Year: 'year','yr','years','yrs'
Month: 'month','mn','months','mns'
Day: 'day','days'
Hour: 'hour','hours','hr','hrs'
Minute: 'minutes','minutes','min','mins'
Second: 'second','seconds','sec','secs'

Examples:
>> A = datenum('14-Jul-2007 15:05:12')
>> datepart(A,'min')
ans =
5.2000
>> floor(datepart(A,'min'))
ans =
5
>> format bank
>> datepart(A,'year')
ans =
2007.53
>> [day,yr] = datepart(A,'day','year')
day =
14.63
yr =
2007.53

Free download from Shareware Connection - X = DATEPART(DATE,'part') returns the date 'part' (year, month,day, hour, minute or second) of the datenum date with the decimal equivalent of the trailing date parts in the units of 'part'

Publisher: Ian Howat | License: Shareware
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 01-04-2013 | Rating: 0 | Title: DATEPART

Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/15585/1/datepart.zip

More downloads from DATEPART publisher Ian Howat:

ENVI file reader - I = ENVIREAD(FILENAME) Reads an ENVI binary file into an array

tile - A = tile(B,nx,ny,overlap)

TIMESPLITRINEX - TIMESPLITRINEX splits a RINEX GPS file by time.

INVDISTGRID - INVDISTGRID Simple, robust gridding using inverse-distance interpolation.

FILLNANS - FILLNANS replaces all NaNs in array using inverse-distance weighting.

DATEPART keywords:
DATEPART related downloads:

MDADD String date add - This is a string date add routine that computes add of start date with increment in days,

EpochTime - Frustrated by epoch timestamps? Easily convert any "hour minute second month day year" combination into unix Epoch time, or paste in an epoch timestamp and get back the corresponding human readable date, down to the second.

CRAYON Clock Widget - Clock widget Very cute drawn with a crayon touch delivery ♪ free howNotice ♪ the - minute year, month, date, day of the week, hour to widget was installed========================================A feature of the CRAYON clock widget !...

CSC Date Calculator CE - CSC Date Calculator counts the days after, before and between selected dates.

obout Calendar - Fast and great looking sliding calendar. Three modes: double or single month and date picker. Change many styles with one property. Highly customizable and simple to use.

Shareware Connection periodically updates pricing and software information of 'DATEPART' from company source 'Ian Howat' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'DATEPART' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DATEPART.

New Reviews

Driver Fusion - To keep your laptop and desktop running smoothly and get the best performance out of it, it is important to pay attention to some aspects. It is quite important to ensure your PC device drivers are updated. Components like motherboards, GPU and ...

Eset Cyber Security Pro - There was a time Mac users were simply oblivious to the existence of malware and viruses, partially encouraged by Apple’s claim that Mac’s do not fall prey to malicious code. In last few years, that perception has been shattered owing ...

Apple iMovie - For higher end video editing and post production related needs on Mac OS, the preferred choice is FCP in most instances. However, not all Mac users need to deal with a feature laden, sophisticated editor for casual needs. For casual to moderate ...

Freemake Video Converter - Video conversion can become a necessity for average PC users who find it increasingly hard to manage an ever growing collection of media and video files. The DVDs, videos obtained from web and clips shot with mobile devices keep growing. Over ...

Uniblue SpeedUpMyPC 2013 - Even if you use an expensive desktop or laptop with beefy hardware and have the latest version of Windows installed, it is not unusual to find your system running sluggishly after prolonged usage. This has got more to do with inherent working ...

TunnelBear - While internet access has become cheaper and faster over the years, certain downsides of the World Wide Web still looms and affects users. Even if you have the resources and monetary capacity to afford a blazing fast and unlimited internet ...

Backup Dwarf Home Edition - Making backups of data and media content has become extremely important for computer users nowadays. Owing to hardware failure, you may end up losing gigabytes of precious data. Besides, you may not want to leave sensitive data accessible to all ...

Bolide Movie Creator - Not many PC users ventured into editing video clips even a few years back. It was a task reserved for studio setups and professionals. However, emergence of mobile video recording devices, access to internet has changed things in recent times. ...

PureSync Personal - When you use computers, there is no way you can escape using specialized third party software. These need to be used for various needs including office productivity, web access, taking back-up and ensuring proper synchronization across multiple ...

Spark Browser - Nearly every PC user needs to browse the web nowadays, irrespective of age and gender. Whether you use a laptop or desktop, it is mandatory to use a web browser to access web or download files. There was a time a majority of Windows users ...




New Downloads

Agnitum Outpost Security
Suite Free

Anti-virus, anti-spyware,
firewall, anti-spam, and more
for all-round proactive
protection that's totally
free.

Crowd Funding Site -
NCrypted Websites

Crowdfunding Clone allows
generating funds for the
project using internet as main
source. Whether you are
looking for a ...

Letter Extraction from
Image

This program makes an easy
understanding of Image
Processing on MATLAB.

Tektronix TDS 1012
Oscilloscope

This is a MATLAB™ instrument
driver for use with v2.0 of
the Instrument Control
Toolboxd-OC?D? and higher

Preprocess CP2TFORM

When CP2TFORM is used in
piecewise linear image
transformation mode, it uses
triangulation to calculate the
local image ...

Rohde & Schwarz CMD55
Digital Radiocom Tester

This is a MATLAB™ instrument
driver for use with v2.0 of
the Instrument Control
Toolboxd-OC?D? and higher

routh stability criteria
table generator

It needs highest power and
coefficients of the
characteristic equation.

Scr.im Email Saver

Do your users leave their
Email IDs in their comments
and you want to prevent that?
Well, then this plugin is
pefect for you!

Particle Filter Color
Tracker

A simple example demonstrating
how to track an object with
particle filter

AM modulation and its
spectrum

A single program which plot
Spectrum of AM modulation.

Book Import

The Book Import module allows
the importing of Drupal books,
from exported Drupal book XML
files.

change_position_select_obj

reads files and an offset to
the coordinates of the
selected objects