Skip to main content
added 9 characters in body
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

Octave / MATLAB, 27 bytes

@(x)datestr(x/86400+now,10) 

Try it online!

How it works

@(x) % Define anonymous function with input x x/86400 % Divide input by 86400, to convert to days now % Current time in days since "January 0, 0000" + % Add datestr( ,10) % Convert to string with format 10, which is year 

Octave, 27 bytes

@(x)datestr(x/86400+now,10) 

Try it online!

How it works

@(x) % Define anonymous function with input x x/86400 % Divide input by 86400, to convert to days now % Current time in days since "January 0, 0000" + % Add datestr( ,10) % Convert to string with format 10, which is year 

Octave / MATLAB, 27 bytes

@(x)datestr(x/86400+now,10) 

Try it online!

How it works

@(x) % Define anonymous function with input x x/86400 % Divide input by 86400, to convert to days now % Current time in days since "January 0, 0000" + % Add datestr( ,10) % Convert to string with format 10, which is year 
added 386 characters in body
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

Octave, 27 bytes

@(x)datestr(x/86400+now,10) 

Try it online!

How it works

@(x) % Define anonymous function with input x x/86400 % Divide input by 86400, to convert to days now % Current time in days since "January 0, 0000" + % Add datestr( ,10) % Convert to string with format 10, which is year 

Octave, 27 bytes

@(x)datestr(x/86400+now,10) 

Try it online!

Octave, 27 bytes

@(x)datestr(x/86400+now,10) 

Try it online!

How it works

@(x) % Define anonymous function with input x x/86400 % Divide input by 86400, to convert to days now % Current time in days since "January 0, 0000" + % Add datestr( ,10) % Convert to string with format 10, which is year 
Source Link
Luis Mendo
  • 106.7k
  • 10
  • 139
  • 382

Octave, 27 bytes

@(x)datestr(x/86400+now,10) 

Try it online!