Giter Club home page Giter Club logo

Comments (4)

ajft avatar ajft commented on August 25, 2024

Addendum, some scanning through the org_archive file that was generated and I've found cases where what I think are similarly named files result in different format org entries:


** <2012-12-05 Wed> 2012-12-05-bashhistory_fafnir
:PROPERTIES:
:ID: af77fd3c467e3050ddd0c29e3353209cdeabe4b2
:END:

** <2012-12-06 Thu 11:32:47> 2012-12-06-bashhistory_warsaw
:PROPERTIES:
:ID: 37b0a94ced56ecf6a036bd9173646804a7aa92a5

:END:

from memacs.

awieser avatar awieser commented on August 25, 2024

You just found the undocumented feature that time information is extracted from the file itself.

I have just added a new argument "--skip-file-time-extraction" to avoid that.

regards Armin

from memacs.

novoid avatar novoid commented on August 25, 2024

To be completely specific and as an addendum to the comment of awieser:

The module looks for the timestamp of the corresponding file (mtime). If its day matches the datestamp of the file name, the time (of mtime) is used for generating the full time stamp in the resulting Org-mode file. If the days do not match, the resuling Org-mode file contains only a date stamp (not a time stamp).

So:

  • matching mtime and date stamp of file name -> full time stamp in Org
  • days not matching (mtime and date stamp of file name) -> date stamp in Org

As awieser wrote: you can now disable this using the --skip-file-time-extraction parameter.

HTH

from memacs.

ajft avatar ajft commented on August 25, 2024

Thanks guys, just what I was after (and the explanation was as I expected). One step closer to org-mode taking over the universe...

from memacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.