Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom formatting for Date Nanos Format #42445

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add date nanoseconds samples
  • Loading branch information
bartvanremortele committed Aug 6, 2019
commit 083f0165ec7e879f0419161f60de4d41286afa31
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

import React, { Fragment } from 'react';
import moment from 'moment';

import {
EuiCode,
Expand All @@ -44,9 +43,9 @@ export class DateNanosFormatEditor extends DefaultFormatEditor {
constructor(props) {
super(props);
this.state.sampleInputs = [
Date.now(),
moment().startOf('year').valueOf(),
moment().endOf('year').valueOf()
'2015-01-01T12:10:30.123456789Z',
'2019-05-08T06:55:21.567891234Z',
'2019-08-06T17:22:30.987654321Z'
];
}

Expand Down