tracker issue : CF-3429713

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] ER for: millisecond() and createDateTime(year,month,day,hour,minute,second,millisecond)

| View in Tracker

Status/Resolution/Reason: To Test//Fixed

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 12/14/2012

Components: Language

Versions: 2016,11.0,10.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 4

Currently, there is no millisecond() function and createDateTime() doesn't support a millisecond parameter.

Please consider this example:

<cfscript>
  myVar = createDateTime(2012,1,2,3,4,5);
  myVar = dateAdd("l", 6, myVar);//ER: createDateTime(year,month,day,hour,minute,second,millisecond)
  writeOutput(dateTimeFormat(myVar, "yyyy-m-d H:n:s:l") & '<br />');//milliseconds supported here, good
  writeOutput(year(myVar) & '-' & month(myVar) & '-' & day(myVar) & ' ' & hour(myVar) & ':' & minute(myVar) & ':' & second(myVar));//ER: millisecond(myVar)
</cfscript>

Milliseconds are important too.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3429713

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

For the sake of completeness: sure. it (goes without saying) this needs to be optional, though, yeah?
Vote by External U.
16924 | December 15, 2015 02:50:28 AM GMT
Hi Adam, Good point! Yes, millisecond parameter should be optional =) Thanks!, -Aaron
Comment by External U.
16918 | December 15, 2015 06:17:05 AM GMT
+1 ...............................
Vote by External U.
16925 | December 15, 2015 09:56:43 AM GMT
Hi Adobe, Can you please include createTime(hour, minute, second[, millisecond]) in this ticket? Millisecond optional (same as w/ createDateTime()). Thanks!, -Aaron
Comment by External U.
16919 | December 16, 2015 08:53:41 AM GMT
Hi Adobe, Could you please also include setMillisecond() in this ticket as well. This is the "millisecond ticket" :) Anything millisecond-related can be part of this ticket. So this ticket could be re-titled something like "[ANeff] ER for: enhanced millisecond support" Thanks!, -Aaron
Comment by External U.
16920 | December 16, 2015 09:45:26 AM GMT
Hi Adobe, Can you please update this ticket's title to be: [ANeff] ER for: [.]millisecond(), createDateTime(..[,millisecond]) and .setMillisecond() B/c this "millisecond ticket" covers: 1) millisecond() and .millisecond() 2) createDateTime() optional millisecond parameter 3) .setMillisecond() Thanks!, -Aaron
Comment by External U.
16921 | January 10, 2016 03:19:11 AM GMT
[Correction] Can you please update this ticket's title to be: -------------------------------------------- [ANeff] ER for: [.]millisecond(), create[Date]Time(..[,millisecond]) and .setMillisecond() -------------------------------------------- B/c this "millisecond ticket" covers: 1) millisecond() and .millisecond() 2) createDateTime()/createTime() optional millisecond parameter 3) .setMillisecond() Thanks!, -Aaron
Comment by External U.
16922 | January 22, 2016 04:33:19 AM GMT
Hi Adobe, Please also support millisecond in dateDiff(). Example: date1.diff("l", date2) Please just support milliseconds across-the-board. It's about time ;) Thanks!, -Aaron
Comment by Aaron N.
16923 | May 27, 2017 05:24:10 AM GMT