diff --git a/README.html b/README.html index 918055f..b10f040 100644 --- a/README.html +++ b/README.html @@ -238,6 +238,18 @@ python -c "import numpy; numpy.info(num np.sqrt(-1) == np.emath.sqrt(-1) +
  • How to get the current date ? (★☆☆)

    +
    +np.datetime64('today', 'D')
    +np.datetime64('now', 'D')
    +
    +
  • +
  • How to get all the dates corresponding to the month of July 2016? (★★☆)

    +
    +Z = np.arange('2016-07', '2016-08', dtype='datetime64[D]')
    +print(Z)
    +
    +
  • How to compute ((A+B)*(-A/2)) in place (without copy)? (★★☆)

     A = np.ones(3)*1
    diff --git a/README.rst b/README.rst
    index f859021..2e70dda 100644
    --- a/README.rst
    +++ b/README.rst
    @@ -284,6 +284,21 @@ Thanks to Michiaki Ariga, there is now a
     
           np.sqrt(-1) == np.emath.sqrt(-1)
     
    +#. How to get the current date ? (★☆☆) 
    +
    +   .. code-block:: python
    +
    +      np.datetime64('today', 'D')
    +      np.datetime64('now', 'D')
    +      
    +#. How to get all the dates corresponding to the month of July 2016? (★★☆) 
    +
    +   .. code-block:: python
    +
    +      Z = np.arange('2016-07', '2016-08', dtype='datetime64[D]')
    +      print(Z)
    +      
    +
     #. How to compute ((A+B)*(-A/2)) in place (without copy)? (★★☆)
     
        .. code-block:: python