Repository: sunpy/sunpy

Issue:
You have to specify seconds on the time string arguments to a.Time now
I could have sworn you didn't used to have to do this.

Discussion:
pep8speaks: Hello @abhishekpandey1880! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`sunpy/time/time.py`](https://github.com/sunpy/sunpy/blob/de3b4b8c95e6cad324ea46b2e580a9655f347f29/sunpy/time/time.py):

> [Line 64:22](https://github.com/sunpy/sunpy/blob/de3b4b8c95e6cad324ea46b2e580a9655f347f29/sunpy/time/time.py#L64): [E261](https://duckduckgo.com/?q=pep8%20E261) at least two spaces before inline comment


nabobalis: Tests need adding to the attrs to make sure that `a.Time` works as intended. 

Patch:
diff --git a/changelog/4791.feature.rst b/changelog/4791.feature.rst
new file mode 100644
index 000000000..529c623c0
--- /dev/null
+++ b/changelog/4791.feature.rst
@@ -0,0 +1,1 @@
+Added support for "%Y/%m/%dT%H:%M" to :func:`sunpy.time.parse_time`.
diff --git a/sunpy/time/time.py b/sunpy/time/time.py
index 3ca0f33e2..fa89282ab 100644
--- a/sunpy/time/time.py
+++ b/sunpy/time/time.py
@@ -61,6 +61,7 @@ TIME_FORMAT_LIST = [
     "%Y:%j:%H:%M:%S.%f",  # Example 2012:124:21:08:12.999999
     "%Y%m%d%H%M%S",  # Example 20140101000001 (JSOC / VSO)
     "%Y.%m.%d_%H:%M:%S_TAI",  # Example 2016.05.04_21:08:12_TAI
+    "%Y/%m/%dT%H:%M",  # Example 2007/05/04T21:08
 ]
 
 


Test patch:
diff --git a/sunpy/net/tests/test_attrs.py b/sunpy/net/tests/test_attrs.py
index a5c3118e4..a9156d444 100644
--- a/sunpy/net/tests/test_attrs.py
+++ b/sunpy/net/tests/test_attrs.py
@@ -1,5 +1,6 @@
 from sunpy.net import attr
 from sunpy.net import attrs as a
+from sunpy.time import parse_time
 
 
 def test_time_subclass():
@@ -8,3 +9,9 @@ def test_time_subclass():
 
     assert isinstance(NewTime("2020/01/01", "2020/01/02") &
                       a.Time("2020/02/02", "2020/02/03"), attr.AttrAnd)
+
+
+def test_attrs_time():
+    times = a.Time("2020/10/01T00:00", "2020/10/01T00:00")
+    times.start == parse_time("2020/10/01T00:00")
+    times.end == parse_time("2020/10/01T00:00")
diff --git a/sunpy/time/tests/test_time.py b/sunpy/time/tests/test_time.py
index 975509eb4..ca395bd20 100644
--- a/sunpy/time/tests/test_time.py
+++ b/sunpy/time/tests/test_time.py
@@ -228,6 +228,7 @@ def test_parse_time_ISO():
         ('04-May-2007', dt5),
         ('04-May-2007 21:08:12.999999', dt2),
         ('20070504_210812', dt3),
+        ('2007/05/04T21:08', dt4),
     ]
 
     for k, v in lst: